MCPcopy Create free account
hub / github.com/kataras/iris / ToJSON

Method ToJSON

auth/configuration.go:181–183  ·  view source on GitHub ↗

ToJSON returns the "c" Configuration's contents as raw json byte slice.

()

Source from the content-addressed store, hash-verified

179
180// ToJSON returns the "c" Configuration's contents as raw json byte slice.
181func (c *Configuration) ToJSON() ([]byte, error) {
182 return json.Marshal(c)
183}
184
185// MustGenerateConfiguration calls the Configuration's BindRandom
186// method and returns the result. It panics on errors.

Callers 1

BindFileMethod · 0.80

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected