1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2025-05-24 13:52:30 +00:00

symlinks to save space

from `go get github.com/vbatts/freezing-octo-hipster/cmd/dups`
I ran `dups -s .`

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-09-03 19:36:41 -04:00
parent 5329804f93
commit 6c96557cc6
Signed by: vbatts
GPG key ID: 10937E57733F1362
34 changed files with 24 additions and 598 deletions

View file

@ -1,37 +0,0 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
fmt.Println("I've got:")
for card := range ReadEmAndWeep() {
fmt.Printf(" %s of %s\n", card.Value, card.Suite)
}
// STOP1 OMIT
}
type Card struct {
Suite, Value string
}
// START2 OMIT
func ReadEmAndWeep() <-chan Card {
c := make(chan Card)
go func() {
for _, card := range []Card{
Card{"Ace", "Jack"},
Card{"Ace", "Queen"},
Card{"Ace", "King"},
Card{"Ace", "Ace"},
} {
c <- card
}
close(c)
}()
return c
}
// STOP2 OMIT

View file

@ -0,0 +1 @@
../02-devconf.cz/primitive3.go