forked from corestoreio/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobs.go
35 lines (28 loc) · 784 Bytes
/
jobs.go
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
26
27
28
29
30
31
32
33
34
35
package pseudo
import (
"strings"
"golang.org/x/exp/errors/fmt"
)
// Company generates company name
func (s *Service) Company() string {
return s.lookup(s.o.Lang, "companies", true)
}
// Company generates company name
func (s *Service) CompanyLegal() string {
return fmt.Sprintf("%s %s",
s.lookup(s.o.Lang, "companies", true),
s.lookup(s.o.Lang, "company_entity", true),
)
}
// JobTitle generates job title
func (s *Service) JobTitle() string {
job := s.lookup(s.o.Lang, "jobs", true)
return strings.Replace(job, "#{N}", s.jobTitleSuffix(), 1)
}
func (s *Service) jobTitleSuffix() string {
return s.lookup(s.o.Lang, "jobs_suffixes", false)
}
// Industry generates industry name
func (s *Service) Industry() string {
return s.lookup(s.o.Lang, "industries", true)
}