diff --git a/README b/README index ea1ece8..6aab25c 100644 --- a/README +++ b/README @@ -34,28 +34,25 @@ gobyexample.com signups * no drm = topics -* time formatting -* connection pool -* typed json parse/unparse +* worker pool +* rate limiting + +* string formatting * web app +* time formatting +* typed json parse/unparse * gzip * base64 encoding -* listing files -* tls server -* tls client -* buffered io -* tcp proxy * http streaming server * http streaming client -* http proxy * templating -* hipache port * ssh * dns -* tty * iota * oauth for google domains * testing +* markdown (blackfriday) +* mongo * setting up go env, hello world * deploying to heroku @@ -63,8 +60,6 @@ gobyexample.com signups * apps with multiple named binaries * shipping a package (structure, github, docs) -* blackfriday - = program ideas self-signed cert generator command line client for public json api diff --git a/src/01-hello.go b/src/01-hello.go index 91e7378..6ed73fb 100644 --- a/src/01-hello.go +++ b/src/01-hello.go @@ -3,5 +3,9 @@ package main import "fmt" func main() { - fmt.Println("Hello World") + fmt.Println("Hello, world") } + +// == running +// $ go run 01-hello.go +// Hello, world diff --git a/src/xx-errors.go b/src/xx-errors.go index 290a5e5..00f37c1 100644 --- a/src/xx-errors.go +++ b/src/xx-errors.go @@ -17,3 +17,7 @@ func main() { _, e := myFun(42) fmt.Println(e) } + +// == todo +// custom errors +// data conveying errors diff --git a/src/xx-postgres.go b/src/xx-postgres.go index b2e888a..5fbc186 100644 --- a/src/xx-postgres.go +++ b/src/xx-postgres.go @@ -50,8 +50,16 @@ func main() { fmt.Println(dropRep) } +// == running // # start postgres // $ createdb gobyexample // $ cd xx-postgres // $ go get // $ ./xx-postgres + +// == todo +// connection pooling +// concurrency +// re-connection +// errors +// explain diff --git a/src/xx-redis.go b/src/xx-redis.go index e57e7fc..5ec8659 100644 --- a/src/xx-redis.go +++ b/src/xx-redis.go @@ -63,7 +63,14 @@ func main() { time.Sleep(time.Second) } +// == running // $ redis-server // $ cd xx-redis // $ go get // $ ./xx-redis + +// == todo +// connection pooling +// concurrency +// reconnection +// errors