Documentation ¶
Index ¶
- func Errorf(format string, a ...interface{}) error
- func Fprint(w io.Writer, a ...interface{}) (n int, err error)
- func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)
- func Fprintfln(w io.Writer, format string, a ...interface{}) (n int, err error)
- func Fprintln(w io.Writer, a ...interface{}) (n int, err error)
- func Fscan(r io.Reader, a ...interface{}) (n int, err error)
- func Fscanf(r io.Reader, format string, a ...interface{}) (n int, err error)
- func Fscanln(r io.Reader, a ...interface{}) (n int, err error)
- func Print(a ...interface{}) (n int, err error)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Printfln(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func Scan(a ...interface{}) (n int, err error)
- func Scanf(format string, a ...interface{}) (n int, err error)
- func Scanln(a ...interface{}) (n int, err error)
- func Sprint(a ...interface{}) string
- func Sprintf(format string, a ...interface{}) string
- func Sprintfln(format string, a ...interface{}) string
- func Sprintln(a ...interface{}) string
- func Sscan(str string, a ...interface{}) (n int, err error)
- func Sscanf(str string, format string, a ...interface{}) (n int, err error)
- func Sscanln(str string, a ...interface{}) (n int, err error)
- type Formatter
- type GoStringer
- type ScanState
- type Scanner
- type State
- type Stringer
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fprintfln ¶
Fprintfln is the same as fmt.Fprintf, but appends a new line.
Example ¶
package main import ( "os" "4d63.com/fmt" ) func main() { fmt.Fprintfln(os.Stdout, "Hello %s!", "world") fmt.Fprintfln(os.Stdout, "G'day %s!", "world") }
Output: Hello world! G'day world!
func Printfln ¶
Printfln is the same as fmt.Printf, but appends a new line.
Example ¶
package main import ( "4d63.com/fmt" ) func main() { fmt.Printfln("Hello %s!", "world") fmt.Printfln("G'day %s!", "world") }
Output: Hello world! G'day world!
func Sprintfln ¶
Sprintf is the same as fmt.Printf, but appends a new line.
Example ¶
package main import ( "4d63.com/fmt" ) func main() { fmt.Print(fmt.Sprintfln("Hello %s!", "world")) fmt.Print(fmt.Sprintfln("G'day %s!", "world")) }
Output: Hello world! G'day world!
Types ¶
type GoStringer ¶
type GoStringer = fmt.GoStringer
Click to show internal directories.
Click to hide internal directories.