Codebase list golang-github-icrowley-fake / run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main jobs.go
run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main

Tree @run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/main (Download .tar.gz)

jobs.go @run/bf6e725c-58e0-4fc0-bb4c-53d288598f49/mainraw · history · blame

package fake

import (
	"strings"
)

// Company generates company name
func Company() string {
	return lookup(lang, "companies", true)
}

// JobTitle generates job title
func JobTitle() string {
	job := lookup(lang, "jobs", true)
	return strings.Replace(job, "#{N}", jobTitleSuffix(), 1)
}

func jobTitleSuffix() string {
	return lookup(lang, "jobs_suffixes", false)
}

// Industry generates industry name
func Industry() string {
	return lookup(lang, "industries", true)
}