Go Recipes: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
* Reading a file with <tt>[[Go Package os|os]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-file.go playground/go/files/read-file.go] | * Reading a file with <tt>[[Go Package os|os]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-file.go playground/go/files/read-file.go] | ||
* Readinga file with <tt>[[Go Package io|io/ioutil]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-file-2.go playground/go/files/read-file-2.go] | * Readinga file with <tt>[[Go Package io|io/ioutil]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-file-2.go playground/go/files/read-file-2.go] | ||
* Writing a file with <tt>[[Go Package os|os]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/write-file.go playground/go/files/write-file.go] | |||
</blockquote> | </blockquote> |
Revision as of 06:26, 31 March 2016
Internal
Recipes
- 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