(key string)
| 144 | } |
| 145 | |
| 146 | func empty(key string) *Access { |
| 147 | group, name := readKey(key) |
| 148 | return &Access{ |
| 149 | Key: key, |
| 150 | Group: group, |
| 151 | Name: name, |
| 152 | Cname: unsetValue, |
| 153 | Desc: unsetValue, |
| 154 | } |
| 155 | } |
| 156 | func readKey(key string) (group string, name string) { |
| 157 | ls := strings.Split(key, ".") |
| 158 | if len(ls) != 2 { |