Use new Tag type for slice separator.

This commit is contained in:
Alec Thomas
2018-05-23 12:20:47 -04:00
parent 886edb6f5a
commit 5df3b26bab
4 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -123,8 +123,9 @@ func (t *Tag) Has(k string) bool {
return ok
}
func (t *Tag) Get(k string) (string, error) {
return t.items[k], nil
func (t *Tag) Get(k string) (string, bool) {
s, ok := t.items[k]
return s, ok
}
func (t *Tag) GetBool(k string) (bool, error) {