init is called before main.
()
| 11 | |
| 12 | // init is called before main. |
| 13 | func init() { |
| 14 | if len(os.Args) != 2 { |
| 15 | fmt.Println("Usage: ./example2 <url>") |
| 16 | os.Exit(-1) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | // main is the entry point for the application. |
| 21 | func main() { |
nothing calls this directly
no outgoing calls
no test coverage detected