From charlesreid1

No edit summary
Line 5: Line 5:
See [[Go]] for general notes on the Go language.
See [[Go]] for general notes on the Go language.


A note on organizing Go projects: https://github.com/moul/euler
Example Go project organization: https://github.com/moul/euler


==How problems are organized==
To organize the Rosalind problems in a way that keeps them separated and modular but useful, we do the following:
* Each problem is identified on the website with the chapter (indexed by number) and problem from the chapter (indexed by letter)
* Code for problem P from chapter N will be in <code>baNP.go</code>
* Code to test the code for problem P and chapter N will be in <code>baNP_test.go</code>
* The main method is used to run a command line interface to each of the problem solutions
To test all code for all problems, we simply run <code>go test</code>.
To run specific problems, we run <code>go run main</code> to run the main driver, and interact with the command line tool to run specific problems.
==Problems in Go==
* [[Rosalind/BA1A/Go]] -


=Flags=
=Flags=

Revision as of 05:15, 13 December 2018

Link to problems on Rosalind.info: http://rosalind.info/problems/list-view/?location=bioinformatics-textbook-track

Go

See Go for general notes on the Go language.

Example Go project organization: https://github.com/moul/euler

How problems are organized

To organize the Rosalind problems in a way that keeps them separated and modular but useful, we do the following:

  • Each problem is identified on the website with the chapter (indexed by number) and problem from the chapter (indexed by letter)
  • Code for problem P from chapter N will be in baNP.go
  • Code to test the code for problem P and chapter N will be in baNP_test.go
  • The main method is used to run a command line interface to each of the problem solutions

To test all code for all problems, we simply run go test.

To run specific problems, we run go run main to run the main driver, and interact with the command line tool to run specific problems.

Problems in Go

Flags