Skip to content

Commit

Permalink
Drop number prefix in IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Apr 17, 2018
1 parent 02e996f commit e275775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ var (
func GenerateName(typeName string) string {
base := typeName[0:1] + lowerChars.ReplaceAllString(typeName[1:], "")
last := utilrand.String(5)
return fmt.Sprintf("1%s-%s", strings.ToLower(base), last)
return fmt.Sprintf("%s-%s", strings.ToLower(base), last)
}

0 comments on commit e275775

Please sign in to comment.