Please check the official golang installation guide before you start. Official Documentation Also make sure you have installed a go1.11+ version.
make sure your ~/.*shrc have those variable:
➜ echo $GOPATH
/Users/xenking/go
➜ echo $GOROOT
/usr/local/go/
➜ echo $PATH
...:/usr/local/go/bin:/Users/xenking/test//bin:/usr/local/go/bin
For more info and detailed instructions please check this guide: Setting GOPATH
Clone this repository:
➜ git clone https://github.com/xenking/kitsu-media-server.git
Or simply use the following command which will handle cloning the repo:
➜ go get -u -v github.com/xenking/kitsu-media-server
Switch to the repo folder
➜ cd $GOPATH/src/github.com/xenking/kitsu-media-server
➜ go mod download
➜ go run main.go
➜ go build
➜ go test ./...