MCPcopy Index your code
hub / github.com/apache/casbin / NewConfig

Function NewConfig

config/config.go:57–63  ·  view source on GitHub ↗

NewConfig create an empty configuration representation from file.

(confName string)

Source from the content-addressed store, hash-verified

55
56// NewConfig create an empty configuration representation from file.
57func NewConfig(confName string) (ConfigInterface, error) {
58 c := &Config{
59 data: make(map[string]map[string]string),
60 }
61 err := c.parse(confName)
62 return c, err
63}
64
65// NewConfigFromText create an empty configuration representation from text.
66func NewConfigFromText(text string) (ConfigInterface, error) {

Callers 2

LoadModelMethod · 0.92
TestGetFunction · 0.85

Calls 1

parseMethod · 0.95

Tested by 1

TestGetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…