(s string)
| 41 | } |
| 42 | |
| 43 | func GetHash(s string) string { |
| 44 | h := sha1.New() |
| 45 | h.Write([]byte(s)) |
| 46 | |
| 47 | return hex.EncodeToString(h.Sum(nil)) |
| 48 | } |
| 49 | |
| 50 | func Pluralize(count int, singular string, plural string) string { |
| 51 | if count == 1 { |
no outgoing calls
no test coverage detected