summaryrefslogtreecommitdiffstats
path: root/search.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 22:27:01 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 22:27:01 +0100
commit65bf7be9958662d7881ee992874889a5dbbe6ef5 (patch)
tree0b39cf05bf792d773f4675195402de0fc095ac55 /search.go
parentUse error instead of *Error (diff)
downloadldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.gz
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.bz2
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.lz
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.xz
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.zst
ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.zip
Diffstat (limited to 'search.go')
-rw-r--r--search.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/search.go b/search.go
index 01757ce..f104d8d 100644
--- a/search.go
+++ b/search.go
@@ -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 ""
}