Go语言的各种Print函数

时间:2022-01-10 15:00:52

Go语言的各种Print函数

func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)
func Printf(format string, a ...interface{}) (n int, err error)
func Sprintf(format string, a ...interface{}) string
func Errorf(format string, a ...interface{}) error
func Fprint(w io.Writer, a ...interface{}) (n int, err error)
func Print(a ...interface{}) (n int, err error)
func Sprint(a ...interface{}) string
func Fprintln(w io.Writer, a ...interface{}) (n int, err error)
func Println(a ...interface{}) (n int, err error)
func Sprintln(a ...interface{}) string

  各个print函数原型签名