Hello Tyk Team,
I want to contribute a feature for Tyk for which I have to setup a development environment locally. I am new to go language and its environment so need community help in it. So far I had performed following steps.
# Installation brew install go # Clone mkdir ~/GoProjects cd ~/GoProjects git clone https://github.com/TykTechnologies/tyk.git # Setup mkdir ~/.go export GOPATH="$HOME/.go:$HOME/GoProjects/tyk" cd ~/GoProjects/tyk go get
I can see that it pull up all
import packages under
~/.go but end up with following error:
go install: no install location for directory /Users/nazar/GoProjects/tyk outside GOPATH
Now when I run command
go run main.go its showing up following errors;
./main.go:171: undefined: APISpec ./main.go:309: undefined: OAuthManager ./main.go:309: undefined: APISpec ./main.go:364: undefined: APISpec ./main.go:373: undefined: APISpec ./main.go:456: undefined: APISpec ./main.go:477: undefined: APISpec ./main.go:507: undefined: APISpec ./main.go:511: undefined: APISpec
I believe its an issue with properly setting up dependencies of project.
Please help me out in getting started with it.