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,6 +0,0 @@
Usage
====
go get golang.org/x/tools/cmd/present
present .

View File

@ -0,0 +1 @@
../02-devconf.cz/README.md

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 27 B

View File

@ -0,0 +1 @@
../02-devconf.cz/cats20.gif

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 27 B

View File

@ -1,48 +0,0 @@
// +build ignore
package main
import (
"compress/gzip"
"encoding/json"
"flag"
"io/ioutil"
"log"
"os"
)
func main() {
for _, arg := range flag.Args() {
func() {
// START1 OMIT
fh, err := os.Open(arg)
if err != nil {
log.Fatal(err)
}
defer fh.Close()
gz, err := gzip.NewReader(fh)
if err != nil {
log.Fatal(err)
}
defer gz.Close()
buf, err := ioutil.ReadAll(gz)
if err != nil {
log.Fatal(err)
}
var mine MyStruct
err = json.Unmarshal(&mine)
if err != nil {
log.Fatal(err)
}
// STOP1 OMIT
}()
}
}
type MyStruct struct {
}

View File

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

View File

@ -1,20 +0,0 @@
// +build ignore
package main
// START1 OMIT
// exported
type Foo struct {
Bar string // exported
baz bool // private
}
// private
type bif struct {
Harf, Buz int64 // doesn't matter
}
// STOP1 OMIT
func main() {
}

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 27 B

View File

@ -0,0 +1 @@
../02-devconf.cz/gopher.png

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 27 B

View File

@ -1,10 +0,0 @@
// +build ignore
// START1 OMIT
package main
func main() {
println("Howdy y'all")
}
// STOP1 OMIT

View File

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

View File

@ -1,18 +0,0 @@
// +build ignore
package main
// START1 OMIT
import (
"fmt"
"os"
"github.com/foo/bar"
)
// STOP1 OMIT
func main() {
fmt.Println(bar.Baz())
_ = os.FileInfo
}

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 43 B

View File

@ -0,0 +1 @@
../02-devconf.cz/kanye_imma_bookmarklet.png

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 43 B

View File

@ -1,33 +0,0 @@
// +build OMIT
package main
import (
"fmt"
"time"
)
// STARTMAIN1 OMIT
type Ball struct{ hits int }
func main() {
table := make(chan *Ball)
go player("ping", table)
go player("pong", table)
table <- new(Ball) // game on; toss the ball
time.Sleep(1 * time.Second)
<-table // game over; grab the ball
}
func player(name string, table chan *Ball) {
for {
ball := <-table
ball.hits++
fmt.Println(name, ball.hits)
time.Sleep(100 * time.Millisecond)
table <- ball
}
}
// STOPMAIN1 OMIT

View File

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

View File

@ -1,25 +0,0 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
names := []string{
"Michael",
"Jan",
"Sean",
"Silvia",
}
for i, name := range names {
fmt.Printf("%q is the %d name\n", name, i)
}
for i := range names {
fmt.Printf("%q is the %d name\n", names[i], i)
}
for _, name := range names {
fmt.Printf("%q is the ... name\n", name)
}
// STOP1 OMIT
}

View File

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

View File

@ -1,56 +0,0 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
infos := map[string]Info{
"Michael": Info{
City: "Happyville",
Status: Open,
},
"Jan": Info{
City: "Confusville",
Status: Closed,
},
"Sean": Info{
City: "Septober",
Status: Complicated,
},
"Silvia": Info{
City: "Curiousville",
Status: Curios,
},
}
for name, info := range infos {
fmt.Printf("%q is %s in %q\n", name, info.Status, info.City)
}
// STOP1 OMIT
}
type Info struct {
City string
Status Status
}
type Status int
var (
Open = Status(0)
Closed = Status(1)
Complicated = Status(2)
Curios = Status(3)
)
func (s Status) String() string {
switch s {
case Open:
return "open"
case Closed:
return "closed"
case Complicated:
return "complicated"
}
return "hurr"
}

View File

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

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 28 B

View File

@ -0,0 +1 @@
../02-devconf.cz/rainbow.jpg

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 28 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 43 B

View File

@ -0,0 +1 @@
../02-devconf.cz/revenge-of-the-nerds-o.gif

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 43 B

View File

@ -1,8 +0,0 @@
// START1 OMIT
// +build !windows linux,cgo
// STOP1 OMIT
package main
func main() {
}

View File

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

View File

@ -1,16 +0,0 @@
// +build ignore
package main
func main() {
// START1 OMIT
c := make(chan int)
go func() {
for i := 0; i < 10; i++ {
c <- i
}
close(c)
}()
println(<-c)
// STOP1 OMIT
}

View File

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

View File

@ -1,22 +0,0 @@
// +build ignore
package main
// START1 OMIT
const (
DeviceCreate TaskType = iota
DeviceReload
DeviceRemove
DeviceRemoveAll
DeviceSuspend
DeviceResume
DeviceInfo
DeviceDeps
)
// STOP1 OMIT
type TaskType int
func main() {
}

View File

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

View File

@ -1,6 +0,0 @@
Usage
====
go get golang.org/x/tools/cmd/present
present .

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/README.md

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 35 B

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/cats20.gif

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 35 B

View File

@ -1,48 +0,0 @@
// +build ignore
package main
import (
"compress/gzip"
"encoding/json"
"flag"
"io/ioutil"
"log"
"os"
)
func main() {
for _, arg := range flag.Args() {
func() {
// START1 OMIT
fh, err := os.Open(arg)
if err != nil {
log.Fatal(err)
}
defer fh.Close()
gz, err := gzip.NewReader(fh)
if err != nil {
log.Fatal(err)
}
defer gz.Close()
buf, err := ioutil.ReadAll(gz)
if err != nil {
log.Fatal(err)
}
var mine MyStruct
err = json.Unmarshal(&mine)
if err != nil {
log.Fatal(err)
}
// STOP1 OMIT
}()
}
}
type MyStruct struct {
}

View File

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

View File

@ -1,20 +0,0 @@
// +build ignore
package main
// START1 OMIT
// exported
type Foo struct {
Bar string // exported
baz bool // private
}
// private
type bif struct {
Harf, Buz int64 // doesn't matter
}
// STOP1 OMIT
func main() {
}

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 35 B

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/gopher.png

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 35 B

View File

@ -1,10 +0,0 @@
// +build ignore
// START1 OMIT
package main
func main() {
println("Howdy y'all")
}
// STOP1 OMIT

View File

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

View File

@ -1,18 +0,0 @@
// +build ignore
package main
// START1 OMIT
import (
"fmt"
"os"
"github.com/foo/bar"
)
// STOP1 OMIT
func main() {
fmt.Println(bar.Baz())
_ = os.FileInfo
}

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 51 B

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/kanye_imma_bookmarklet.png

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 51 B

View File

@ -1,33 +0,0 @@
// +build OMIT
package main
import (
"fmt"
"time"
)
// STARTMAIN1 OMIT
type Ball struct{ hits int }
func main() {
table := make(chan *Ball)
go player("ping", table)
go player("pong", table)
table <- new(Ball) // game on; toss the ball
time.Sleep(1 * time.Second)
<-table // game over; grab the ball
}
func player(name string, table chan *Ball) {
for {
ball := <-table
ball.hits++
fmt.Println(name, ball.hits)
time.Sleep(100 * time.Millisecond)
table <- ball
}
}
// STOPMAIN1 OMIT

View File

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

View File

@ -1,25 +0,0 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
names := []string{
"Michael",
"Jan",
"Sean",
"Silvia",
}
for i, name := range names {
fmt.Printf("%q is the %d name\n", name, i)
}
for i := range names {
fmt.Printf("%q is the %d name\n", names[i], i)
}
for _, name := range names {
fmt.Printf("%q is the ... name\n", name)
}
// STOP1 OMIT
}

View File

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

View File

@ -1,56 +0,0 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
infos := map[string]Info{
"Michael": Info{
City: "Happyville",
Status: Open,
},
"Jan": Info{
City: "Confusville",
Status: Closed,
},
"Sean": Info{
City: "Septober",
Status: Complicated,
},
"Silvia": Info{
City: "Curiousville",
Status: Curios,
},
}
for name, info := range infos {
fmt.Printf("%q is %s in %q\n", name, info.Status, info.City)
}
// STOP1 OMIT
}
type Info struct {
City string
Status Status
}
type Status int
var (
Open = Status(0)
Closed = Status(1)
Complicated = Status(2)
Curios = Status(3)
)
func (s Status) String() string {
switch s {
case Open:
return "open"
case Closed:
return "closed"
case Complicated:
return "complicated"
}
return "hurr"
}

View File

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

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 @@
../../2015/02-devconf.cz/primitive3.go

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 36 B

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/rainbow.jpg

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 36 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 51 B

View File

@ -0,0 +1 @@
../../2015/02-devconf.cz/revenge-of-the-nerds-o.gif

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 51 B

View File

@ -1,8 +0,0 @@
// START1 OMIT
// +build !windows linux,cgo
// STOP1 OMIT
package main
func main() {
}

View File

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

View File

@ -1,16 +0,0 @@
// +build ignore
package main
func main() {
// START1 OMIT
c := make(chan int)
go func() {
for i := 0; i < 10; i++ {
c <- i
}
close(c)
}()
println(<-c)
// STOP1 OMIT
}

View File

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

View File

@ -1,22 +0,0 @@
// +build ignore
package main
// START1 OMIT
const (
DeviceCreate TaskType = iota
DeviceReload
DeviceRemove
DeviceRemoveAll
DeviceSuspend
DeviceResume
DeviceInfo
DeviceDeps
)
// STOP1 OMIT
type TaskType int
func main() {
}

View File

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