Added float64 value support.
Well I hope it works. I wasn't able to understand how to host the website with Google SDK to look the changes myself.
Thank you @mgiannopoulos24 , I'll check it out and merge it if everything works 🙌🏼
Hello @gepser ! After experimenting on how to run it locally, I also managed to fix the issue with float64 values. Now the program can display both integer and float64 values with 2 decimal digits.
Here are some screenshots:
- Float percentage 99.72:
- Float percentage 56.96:
- Integer percentage 12:
Another thing worth mentioning is that you should update the instructions on how to run the program. As shown in #6 there can be a few problems with the program not finding the function Progress.
Below is a solution I found to the problem:
If you use Linux, open a terminal and type:
export FUNCTION_TARGET=Progress
and then:
go run cmd/main.go
If you use Windows, open the PowerShell and type:
$env:FUNCTION_TARGET="Progress"
and then:
go run cmd/main.go
Let me know if you need any other changes!