-
-
Save krancour/eedd7767a700e827ca126d6ed89aaad0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
// The type of the greetingFn variable is func() | |
var greetingFn func() = EnglishGreeting | |
// The next line doesn't care what implementation of func() is used | |
greetingFn() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment