(raw interface{}, writeLoc string)
| 39 | } |
| 40 | |
| 41 | func SerializeFile(raw interface{}, writeLoc string) error { |
| 42 | output, err := json.MarshalIndent(raw, "", " ") |
| 43 | if err != nil { |
| 44 | log.Logger.Error(err) |
| 45 | return err |
| 46 | } |
| 47 | return ioutil.WriteFile(writeLoc, output, 0644) |
| 48 | } |
no outgoing calls
no test coverage detected