Go: Difference between revisions
From charlesreid1
| Line 6: | Line 6: | ||
[[Go/Basics#Paths]] - getting started with all the different Go paths | [[Go/Basics#Paths]] - getting started with all the different Go paths | ||
==Go Hello World== | ==Go Hello World== | ||
Ah, yes, the quintessential [[Go/Hello World]] program. | Ah, yes, the quintessential [[Go/Hello World]] program. | ||
==Go Command Line Tools== | |||
To build a command line tool, you'll set up a directory structure like <code>cmd/</code>. | |||
The command line interface should be defined in a file that uses a library like one of the following: | |||
* go-flags: https://github.com/jessevdk/go-flags | |||
* cobra: https://github.com/spf13/cobra | |||
==Go Tests== | |||
... | |||
==Rosalind== | ==Rosalind== | ||
Revision as of 05:28, 11 December 2018
Go Basics
Go/Installing - installing Go
Go/Basics - getting started with Go
Go/Basics#Paths - getting started with all the different Go paths
Go Hello World
Ah, yes, the quintessential Go/Hello World program.
Go Command Line Tools
To build a command line tool, you'll set up a directory structure like cmd/.
The command line interface should be defined in a file that uses a library like one of the following:
- go-flags: https://github.com/jessevdk/go-flags
- cobra: https://github.com/spf13/cobra
Go Tests
...
Rosalind
Solving the bioinformatics problems on Rosalind.org using Go.
Link to problems: http://rosalind.info/problems/list-view/?location=bioinformatics-textbook-track
Rosalind/Problem 1A - allows us to count the number of occurrences of substring A in a longer string B
Links
Go libraries for data science: http://www.mjhall.org/golang-data-science-libraries/
Graph object in algorithm implementations: https://godoc.org/github.com/twmb/algoimpl/go/graph
Algorithm implementations in Go/C/Java: https://github.com/twmb/algoimpl
gograph: https://github.com/gyuho/goraph
learn: topological sort: https://github.com/gyuho/learn/tree/master/doc/go_graph_topological_sort
Go land mines - also shows some neat javascript-style function syntax (defer): https://gist.github.com/lavalamp/4bd23295a9f32706a48f
Docker and Go: https://gist.github.com/17twenty/069bb0c0c19f72f7828bb80eee39d0a6
Testing installation of Go/upgrading: https://www.digitalocean.com/community/tutorials/how-to-install-go-1-7-on-debian-8