Go Recipes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
* 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]  
* 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]  
* Writing a file with <tt>[[Go Package io|io/ioutil]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/write-file-2.go playground/go/files/write-file-2.go]
* Writing a file with <tt>[[Go Package io|io/ioutil]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/write-file-2.go playground/go/files/write-file-2.go]
* Reading a directory: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-dir.go playground/go/files/read-dir.go]
* Reading a directory with <tt>[[Go Package os|os]]</tt> primitives: [https://github.com/NovaOrdis/playground/blob/master/go/files/read-dir.go playground/go/files/read-dir.go]


</blockquote>
</blockquote>

Revision as of 18:45, 31 March 2016

Internal

Recipes

TODO

  • How to quickly (and idiomatically) assemble primitive in strings to be reported at stdout? In Java I used implicit conversion to String and + operator.