github.com/traefik/yaegi@v0.15.1/_test/method32.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func main() {
     8  	var a = []func(string){bar}
     9  	 b := a[0]
    10  	 b("bar")
    11  }
    12  
    13  func bar(a string) {
    14  	fmt.Println(a)
    15  }
    16  
    17  // Output:
    18  // bar