Skip to content

Instantly share code, notes, and snippets.

@riking
Created April 2, 2017 23:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save riking/71d1c29a8112e8919075d31f32c540a6 to your computer and use it in GitHub Desktop.
kane@kane-TECRA-Z40-B:~/gocode/src/livesplit$ cat core.go
package livesplit
func Hello() int {
return 43
}
kane@kane-TECRA-Z40-B:~/gocode/src/livesplit$ cat cmd/livesplit/livesplit.go
package main
import "fmt"
import "livesplit"
func main() {
fmt.Println(livesplit.Hello())
}
kane@kane-TECRA-Z40-B:~/gocode/src/livesplit$ go build ./cmd/livesplit/
kane@kane-TECRA-Z40-B:~/gocode/src/livesplit$ ./livesplit
43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment