github.com/jd-ly/tools@v0.5.7/go/ssa/interp/testdata/src/fmt/fmt.go (about)

     1  package fmt
     2  
     3  func Sprint(args ...interface{}) string
     4  
     5  func Print(args ...interface{}) {
     6  	for i, arg := range args {
     7  		if i > 0 {
     8  			print(" ")
     9  		}
    10  		print(Sprint(arg))
    11  	}
    12  }
    13  
    14  func Println(args ...interface{}) {
    15  	Print(args...)
    16  	println()
    17  }
    18  
    19  // formatting is too complex to fake
    20  
    21  func Printf(args ...interface{}) string {
    22  	panic("Printf is not supported")
    23  }
    24  func Sprintf(format string, args ...interface{}) string {
    25  	panic("Sprintf is not supported")
    26  }