ToJSON returns the "c" Configuration's contents as raw json byte slice.
()
| 179 | |
| 180 | // ToJSON returns the "c" Configuration's contents as raw json byte slice. |
| 181 | func (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. |