To run this repo -
- git clone https://github.com/vaibhawvipul/google-trends-assignment-go.git
- go run main.go databook.pb.go
The algorithm to calculate the scaler is simple -
- ratio = Old data / New data
- New Data * ratio
The code generates the output into protobuf file.