exercism/go/pangram/pangram.go
2016-11-26 22:10:28 -06:00

21 lines
290 B
Go

package pangram
import "strings"
const testVersion = 1
func IsPangram(inp string) bool {
used := make(map[rune]int)
inp = strings.ToLower(inp)
for _, l := range inp {
used[l] = used[l] + 1
}
for i := 'a'; i <= 'z'; i++ {
if used[i] == 0 {
return false
}
}
return true
}