Documentation
¶
Index ¶
- func Append(b []byte, a ...any) []byte
- func Appendf(b []byte, format string, a ...any) []byte
- func Appendln(b []byte, a ...any) []byte
- func Fprint(w io.Writer, a ...any) (n int, err error)
- func Fprintf(w io.Writer, format string, a ...any) (n int, err error)
- func Fprintln(w io.Writer, a ...any) (n int, err error)
- func Print(a ...any) (n int, err error)
- func Printf(format string, a ...any) (n int, err error)
- func Println(a ...any) (n int, err error)
- func Printlnf(format string, a ...any) (n int, err error)
- func Sprint(a ...any) string
- func Sprintf(format string, a ...any) string
- func Sprintln(a ...any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append formats using the default formats for its operands, appends the result to the byte slice, and returns the updated slice.
func Appendf ¶
Appendf formats according to a format specifier, appends the result to the byte slice, and returns the updated slice.
func Appendln ¶
Appendln formats using the default formats for its operands, appends the result to the byte slice, and returns the updated slice. Spaces are always added between operands and a newline is appended.
func Fprint ¶
Fprint formats using the default formats for its operands and writes to w. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func Fprintf ¶
Fprintf formats according to a format specifier and writes to w. It returns the number of bytes written and any write error encountered.
func Fprintln ¶
Fprintln formats using the default formats for its operands and writes to w. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func Print ¶
Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func Printf ¶
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func Println ¶
Println formats using the default formats for its operands and writes to standard output. Spaces are always added between operands and a newline is appended. It returns the number of bytes written and any write error encountered.
func Sprint ¶
Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string.
Types ¶
This section is empty.