Skip to content

A go build that is built from scratch that allows the end user to fetch API contents and measure website performance analytics.

License

Notifications You must be signed in to change notification settings

likithponnanna/golang-api-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golang-website-analytics

Manual Build Steps:

  • 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

--url flag

  • 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

--profile flag

  • 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

--help flag

  • Use --help flag for the systems appropriately to display options.
foo@bar:~$  ./goAPIAnalyzer --help

About

A go build that is built from scratch that allows the end user to fetch API contents and measure website performance analytics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages