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

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  type data struct {
     8  	S string
     9  }
    10  
    11  func render(v interface{}) {
    12  	fmt.Println(v)
    13  }
    14  
    15  func main() {
    16  	render(data{})
    17  }
    18  
    19  // Output:
    20  // {}