MCPcopy Create free account
hub / github.com/apache/casbin / Int

Method Int

config/config.go:194–196  ·  view source on GitHub ↗

Int lookups up the value using the provided key and converts the value to a int.

(key string)

Source from the content-addressed store, hash-verified

192
193// Int lookups up the value using the provided key and converts the value to a int.
194func (c *Config) Int(key string) (int, error) {
195 return strconv.Atoi(c.get(key))
196}
197
198// Int64 lookups up the value using the provided key and converts the value to a int64.
199func (c *Config) Int64(key string) (int64, error) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected