func printObject(title string, v interface{}) { if v == nil { return } data, _ := env_json.MarshalIndent(v, "", " ") fmt.Println(title+":\n", string(data)) }
func (p *runtimeConfig) Serialize() (str string, err error) { var data []byte if data, err = env_json.MarshalIndent(p, "", " "); err != nil { return } str = string(data) return }
func (p Options) Serialize() (str string, err error) { var data []byte if data, err = env_json.MarshalIndent(&p, "", " "); err != nil { return } str = string(data) return }