- Run go get command to install missing getopt package.
foo@bar:~$ go get github.com/pborman/getopt/v2
- Run build command to build executable binaries based on the system.
foo@bar:~$ go build
- Run the executable binary with --url flag to get json response. For linux and darwin system is as follows:
foo@bar:~$ ./goAPIAnalyzer --url
https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&apikey=demo
OR for windows
foo@bar:~$ goAPIAnalyzer.exe --url
https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&apikey=demo
- Run with --profile numberOfRequest for example --profile 4 for four requests. Default url is for the alphavantage API
foo@bar:~$ ./goAPIAnalyzer --profile 4
OR
foo@bar:~$ goAPIAnalyzer.exe --profile 4
- Use --help flag for the systems appropriately to display options.
foo@bar:~$ ./goAPIAnalyzer --help