ToJson FIXME
(x any)
| 25 | |
| 26 | // ToJson FIXME |
| 27 | func ToJson(x any) json.RawMessage { |
| 28 | b, err := json.Marshal(x) |
| 29 | if err != nil { |
| 30 | panic(err) |
| 31 | } |
| 32 | return b |
| 33 | } |
| 34 | |
| 35 | func ToMap(x any) map[string]any { |
| 36 | b, err := json.Marshal(x) |
no outgoing calls
no test coverage detected