Cap. 2 – Variáveis, Valores & Tipos – 7. O pacote fmt
- Setup: strings, ints, bools.
- Strings: interpreted string literals vs. raw string literals.
- Rune literals.
- Em ciência da computação, um literal é uma notação para representar um valor fixo no código fonte.
- Format printing: documentação.
- Grupo #1: Print → standard out
- func Print(a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func Printf(format string, a ...interface{}) (n int, err error)
- Format verbs. (%v %T)
- Grupo #2: Print → string, pode ser usado como variável
- func Sprint(a ...interface{}) string
- func Sprintf(format string, a ...interface{}) string
- func Sprintln(a ...interface{}) string
- Grupo #3: Print → file, writer interface, e.g. arquivo ou resposta de servidor
- 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 Fprintln(w io.Writer, a ...interface{}) (n int, err error)
-
1:35:13
Roseanne Barr
22 hours ago $12.26 earnedGuns And Chardonnay | The Roseanne Barr Podcast #46
87.2K179 -
1:11:58
Steven Crowder
2 days agoPALESTINE COMMIES: Mug Club Undercover First to Infiltrate Marxist Protesters at George Washington
506K1.57K -
1:28:55
Graham Allen
2 days agoRussell Brand Speaks Out On His Baptism......FINALLY Some Good News!!
77.6K324 -
54:08
Real Coffee With Scott Adams
4 hours agoEpisode 2464 CWSA 05/04/24
22.6K35 -
1:58:47
OFFICIAL Jovan Hutton Pulitzer Rumble
7 hours agoAsk Me Anything! Let's Catch Up - Tell Me About Your Concerns and Let's Find Solutions!
35.6K38 -
56:56
The Squad
12 hours agoArsenal GOING CLEAR & Man City WILL FLOP🏆 Big Ange is a FRAUD😨Enzo Fernandez MUST BE SOLD!
39K7 -
13:42
Space Ice
23 hours agoCon Air Is So Good It'll Restore Your Faith In Mankind - Best Movie Ever - Nicolas Cage
55.5K40 -
1:05:36
TheGetCanceledPodcast
20 hours agoTHE GCP Episode 5 | Diogo Snow Talks Growing Up In Brazil, Art Basel, Cyberpunk & More
61K9 -
1:06
bostonbeaman
1 day agoBE A MAN: Against the Grain 6 Pack
51.8K7 -
14:43
JoBlo Horror Originals
1 day agoHarry and the Hendersons: When Bigfoot Went Hollywood
47.3K10