Skip to content

Commit

Permalink
Update faker
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Jun 1, 2022
1 parent 2ac7179 commit a1cfa89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions faker/faker.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (f Faker) RandomLoremSentence() string {
for i := 0; i < size; i++ {
words += f.RandomLoremWords()
}
return words + "."
return strings.TrimSpace(words) + "."
}

func (f Faker) RandomLoremSentences() string {
Expand Down Expand Up @@ -377,11 +377,11 @@ func (f Faker) RandomCatchPhraseNoun() string {
return CompanyNouns[f.Generator.Intn(len(CompanyNouns))]
}

func (f Faker) RandomBsNouns() string {
func (f Faker) RandomBsNoun() string {
return BusinessNouns[f.Generator.Intn(len(BusinessNouns))]
}

func (f Faker) RandomBsBuzzVerbs() string {
func (f Faker) RandomBsBuzzWord() string {
return BusinessVerbs[f.Generator.Intn(len(BusinessVerbs))]
}

Expand All @@ -390,7 +390,7 @@ func (f Faker) RandomBsAdjective() string {
}

func (f Faker) RandomBs() string {
return f.RandomBsBuzzVerbs() + " " + f.RandomBsAdjective() + " " + f.RandomBsNouns()
return f.RandomBsBuzzWord() + " " + f.RandomBsAdjective() + " " + f.RandomBsNoun()
}

func (f Faker) RandomCompanySuffix() string {
Expand Down

0 comments on commit a1cfa89

Please sign in to comment.