func (a *DefaultAuthority) LeafForGroup(group string) (Leaf, error) {
	groupKey := strings.ToLower(group)
	leaf, has := a.leafs.Load(groupKey)
	if !has {
		return nil, errors.NotFoundf("no leaf for group key %s", groupKey)
	}
	return leaf.(Leaf), nil
}
// LeafForGroup implements Authority interface method.
LeafForGroup implements Authority interface method.
// LeafForGroup implements Authority interface method .
func (a *DefaultAuthority) LeafForGroup(group string) (Leaf, error) {
	groupKey := strings.ToLower(group)
	leaf, has := a.leafs.Load(groupKey)
	if !has {
		return nil, errors.NotFoundf("no leaf for group key %s", groupKey)
	}
	return leaf.(Leaf), nil
}
func ( a * DefaultAuthority ) LeafForGroup ( group string ) ( Leaf , error ) { groupKey := strings . ToLower ( group ) leaf , has := a . leafs . Load ( groupKey ) if ! has { return nil , errors . NotFoundf ( " " , groupKey ) } return leaf . ( Leaf ) , nil }
LeafForGroup implements Authority interface method.
LeafForGroup implements Authority interface method .