(data interface{})
| 36 | } |
| 37 | |
| 38 | func toJSON(data interface{}) []byte { |
| 39 | encoded, err := json.Marshal(data) |
| 40 | if err != nil { |
| 41 | panic(err) |
| 42 | } |
| 43 | return encoded |
| 44 | } |
| 45 | |
| 46 | func sha(data []byte) string { |
| 47 | return fmt.Sprintf("%x", sha1.Sum(data)) |
no outgoing calls
no test coverage detected