diff options
| author | Samuel Stauffer <[email protected]> | 2014-03-19 14:27:01 -0700 |
|---|---|---|
| committer | Samuel Stauffer <[email protected]> | 2014-03-19 14:27:01 -0700 |
| commit | 65bf7be9958662d7881ee992874889a5dbbe6ef5 (patch) | |
| tree | 0b39cf05bf792d773f4675195402de0fc095ac55 /search.go | |
| parent | 2eea0c0a703e32b904741d52c9e2c9ae836c14b0 (diff) | |
Don't capitalize function arguments
Diffstat (limited to 'search.go')
| -rw-r--r-- | search.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -98,17 +98,17 @@ type Entry struct { Attributes []*EntryAttribute } -func (e *Entry) GetAttributeValues(Attribute string) []string { +func (e *Entry) GetAttributeValues(attribute string) []string { for _, attr := range e.Attributes { - if attr.Name == Attribute { + if attr.Name == attribute { return attr.Values } } return []string{} } -func (e *Entry) GetAttributeValue(Attribute string) string { - values := e.GetAttributeValues(Attribute) +func (e *Entry) GetAttributeValue(attribute string) string { + values := e.GetAttributeValues(attribute) if len(values) == 0 { return "" } |
