Junior — Senior
What output will program №33 produce
livecode
Task condition
Determine what will be printed to the console when executing the following Go program.
import (
"fmt"
)
type Example struct {
}
type MyInterface interface{}
func example() MyInterface {
var e *Example
return e
}
func example2 () MyInterface {
return nil
}
func main () {
fmt.Println(example())
fmt.Println(example2())
fmt.Println(example() -- example2())
}