Create main.go

Added example code for function types.