Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which declarations make a Go package directly executable?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-1/checkpoint-1-entry-point/).
Context (verbatim from the page):
"""
Which declarations make a Go package directly executable?
`package main` with `func main()` taking no parameters and returning no values
Any package with an exported `Main` function
`package executable` with `func main() error`
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.