Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 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, " "))
}
You can’t perform that action at this time.