notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Fmt.md (413B)


      1 # fmt
      2 
      3 **Source:** [https://pkg.go.dev/fmt](https://pkg.go.dev/fmt)
      4 
      5 **Definition:** fmt is part of the Go standard library, providing I/O similar to printf and scanf from C.
      6 
      7 ## Printing
      8 
      9 Print, Println, and Printf print to stdout (os.Stdout).
     10 
     11 Sprint, Sprintln, and Sprintf return a string.
     12 
     13 Fprint, Fprintln, and Fprintf wirte to an io.Writer.
     14 
     15 Append, Appendln, and Appendf append the output to a byte slice.