Skip to content
Permalink
v1.1.0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (14 sloc) 393 Bytes
package confyg
import (
"bytes"
"strings"
)
// MapConfig is a simple wrapper around a map.
type MapConfig map[string][]string
// Allow accepts everything.
func (mc MapConfig) Allow(verb string, block bool) bool {
return true
}
func (mc MapConfig) Read(errs *bytes.Buffer, fs *FileSyntax, line *Line, verb string, args []string) {
mc[verb] = append(mc[verb], strings.Join(args, " "))
}