summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/icrowley/fake/jobs.go
blob: 6895c7c9543502d8d27167a8c9cf355373a65ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
}