Skip to content

Commit

Permalink
Update for Go 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoisie committed Apr 21, 2013
1 parent b1466e2 commit 6baaeef
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 207 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.6
*.8
*.o
*.so
*.out
*.go~
*.cgo?.*
_cgo_*
_obj
_test
_testmain.go
*.swp
_site
.DS_Store
23 changes: 5 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@

include $(GOROOT)/src/Make.inc

TARG=redis
GOFMT=gofmt -s -tabs=false -tabwidth=4
GOFILES=\
redis.go\

include $(GOROOT)/src/Make.pkg

tools:
${GC} -o redis-dump.${O} redis-dump.go
${LD} -o redis-dump redis-dump.${O}
install -m 0755 redis-dump $(GOBIN)
${GC} -o redis-load.${O} redis-load.go
${LD} -o redis-load redis-load.${O}
install -m 0755 redis-load $(GOBIN)

format:
gofmt -spaces=true -tabindent=false -tabwidth=4 -w redis.go
gofmt -spaces=true -tabindent=false -tabwidth=4 -w redis_test.go
gofmt -spaces=true -tabindent=false -tabwidth=4 -w redis-load.go
gofmt -spaces=true -tabindent=false -tabwidth=4 -w redis-dump.go
${GOFMT} -w ${GOFILES}
${GOFMT} -w redis_test.go
${GOFMT} -w tools/redis-load.go
${GOFMT} -w tools/redis-dump.go

Loading

0 comments on commit 6baaeef

Please sign in to comment.