// http://blog.denevell.org/golang-closures-anonymous-functions.html
package main

import "fmt"

func main() {
	anon := func(name string) string {
		return "Hiya, " + name
	}
	anotherFunction(anon)
}

func anotherFunction(f func(string) string) {
	result := f("David")
	fmt.Println(result) // Prints "Hiya, David"
}

// http://blog.denevell.org/golang-closures-anonymous-functions.html
package main

import "fmt"

func main() {
	anon := func(name string) string {
		return "Hiya"
	}
	anonyFunc(anon)
}

func anonyFunc(f func(string) string) {
	result := f("David")
	fmt.Println(result) // Prints "Hiya, David"
}

Fix anonymous func name & Remove name arg
Fix anonymous func name & Remove name arg

Signed-off-by: Koichi Shiraishi <2e5bdfebde234ed3509bcfc18121c70b6631e207@gmail.com>
