Documentation
¶
Index ¶
- func Errorf(format string, a ...interface{}) error
- func Print(a ...interface{}) (n int, err error)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func SRepeat(char string, repeat int) string
- func Sprint(a ...interface{}) string
- func Sprintf(fmts string, args ...interface{}) string
- func Sprintln(a ...interface{}) string
- type Stringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 SRepeat ¶
SRepeat just repeats a character or string times <repeat>. DEPRICATED, just use strings.Repeat.
func Sprint ¶
func Sprint(a ...interface{}) string
Sprint renders arguments in their default format ("%s"/"%d"/"%f"/"%U" for string/int/float/rune, respectively)
Types ¶
type Stringer ¶
type Stringer interface {
String() string
}
Stringer is implemented by any value that has a String method, which defines the “native” format for that value. The String method is used to print values passed as an operand to any format that accepts a string or to an unformatted printer such as Print.
Directories
¶
Path | Synopsis |
---|---|
encoding
|
|
json
Package json implements encoding and decoding of JSON objects as defined in RFC 4627.
|
Package json implements encoding and decoding of JSON objects as defined in RFC 4627. |
xml
Package xml implements a simple XML 1.0 parser that understands XML name spaces.
|
Package xml implements a simple XML 1.0 parser that understands XML name spaces. |
net
|
|
url
Package url parses URLs and implements query escaping.
|
Package url parses URLs and implements query escaping. |