(file string)
| 53 | } |
| 54 | |
| 55 | func LoadNodesJSON(file string) NodeSet { |
| 56 | var nodes NodeSet |
| 57 | if err := common.LoadJSON(file, &nodes); err != nil { |
| 58 | panic(err) |
| 59 | } |
| 60 | return nodes |
| 61 | } |
| 62 | |
| 63 | func (nodes NodeSet) WriteNodesJSON(file string) { |
| 64 | nodesJSON, err := json.MarshalIndent(nodes, "", jsonIndent) |