2015-01-19 12 views

risposta

13

Da the documentation:

formati di stampa utilizzando il formato di default per i suoi operandi e scrive sullo standard output.

Quindi sì, scrive su stdout.

6

Sì, lo fa. From the source code:

// 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 Print(a ...interface{}) (n int, err error) { 
    return Fprint(os.Stdout, a...) 
} 

os.Stdout rappresenta effettivamente il flusso di output standard.

Problemi correlati