less words
This commit is contained in:
parent
fdf2b6dbce
commit
614bccfeeb
@ -20,8 +20,8 @@ func main() {
|
|||||||
fmt.Println(a)
|
fmt.Println(a)
|
||||||
fmt.Println(b)
|
fmt.Println(b)
|
||||||
|
|
||||||
// In cases were you only want a subset of the
|
// If you only want a subset of the returned values,
|
||||||
// returned values, use the blank identifier `_`.
|
// use the blank identifier `_`.
|
||||||
_, c := vals()
|
_, c := vals()
|
||||||
fmt.Println(c)
|
fmt.Println(c)
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,3 @@ $ go run switch.go
|
|||||||
write 2 as two
|
write 2 as two
|
||||||
it's the weekend
|
it's the weekend
|
||||||
it's before noon
|
it's before noon
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user