Godoc

1 개요[ | ]

godoc
Console
Copy
$ godoc cmd/fmt
PACKAGE DOCUMENTATION

package fmt
    import "."

    Package fmt implements formatted I/O with functions analogous to C's
    printf and scanf. The format 'verbs' are derived from C's but are
    simpler.
...
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.
Console
Copy
$ godoc cmd/fmt Println
func Println(a ...interface{}) (n int, err error)
    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.

2 같이 보기[ | ]