()
| 323 | } |
| 324 | |
| 325 | func mustExtractArgs() (string, string) { |
| 326 | if len(os.Args) != 3 { |
| 327 | fmt.Println("usage: go run load.go <url> <sample.json OR sample json string>") |
| 328 | os.Exit(1) |
| 329 | } |
| 330 | |
| 331 | url := os.Args[1] |
| 332 | jsonPathOrString := os.Args[2] |
| 333 | |
| 334 | return url, jsonPathOrString |
| 335 | } |