Created
April 2, 2017 23:42
-
-
Save riking/71d1c29a8112e8919075d31f32c540a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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