Go Recipes: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
* TCP client and server with <tt>[[Go Package net|net]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/network/tcp-server.go playground/go/network/tcp-server.go], [https://github.com/NovaOrdis/playground/blob/master/go/network/tcp-client.go playground/go/network/tcp-client.go], | * TCP client and server with <tt>[[Go Package net|net]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/network/tcp-server.go playground/go/network/tcp-server.go], [https://github.com/NovaOrdis/playground/blob/master/go/network/tcp-client.go playground/go/network/tcp-client.go], | ||
* HTTP server with <tt>[[Go Package net|net/http]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/network/http-server.go playground/go/network/http-server.go] | * HTTP server with <tt>[[Go Package net|net/http]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/network/http-server.go playground/go/network/http-server.go] | ||
* RPC - Introducing Go page 89 | |||
</blockquote> | </blockquote> |
Revision as of 23:23, 1 April 2016
Internal
Recipes
Files
- Reading a file with os primitives: playground/go/files/read-file.go
- Readinga file with io/ioutil primitives: playground/go/files/read-file-2.go
- Writing a file with os primitives: playground/go/files/write-file.go
- Writing a file with io/ioutil primitives: playground/go/files/write-file-2.go
- Reading a directory with os primitives: playground/go/files/read-dir.go
- Walking a directory with path/filepath primitives: playground/go/files/walk-dir.go
Network
- TCP client and server with net primitives: playground/go/network/tcp-server.go, playground/go/network/tcp-client.go,
- HTTP server with net/http primitives: playground/go/network/http-server.go
- RPC - Introducing Go page 89