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

     1  package main
     2  
     3  import (
     4  	"log"
     5  	"os"
     6  )
     7  
     8  func main() {
     9  	logger := log.New(os.Stdout, "test ", log.Lmsgprefix)
    10  	logger.Printf("args: %v %v", 1, "truc")
    11  	logger.Printf("args: %v %v %v", 1, "truc", 2)
    12  }
    13  
    14  // Output:
    15  // test args: 1 truc
    16  // test args: 1 truc 2