mark unicode normalization with type

This commit is contained in:
Jeremy Latt 2014-03-09 13:45:36 -07:00
parent 97886dd00f
commit 96a108f8da
12 changed files with 324 additions and 269 deletions

View file

@ -37,10 +37,10 @@ type Config struct {
}
}
func (conf *Config) Operators() map[string][]byte {
operators := make(map[string][]byte)
func (conf *Config) Operators() map[Name][]byte {
operators := make(map[Name][]byte)
for name, opConf := range conf.Operator {
operators[name] = opConf.PasswordBytes()
operators[NewName(name)] = opConf.PasswordBytes()
}
return operators
}