mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
feat(analytics): vendor code for google analytics
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
d608dbacd8
commit
dc5edb901c
23 changed files with 2620 additions and 0 deletions
19
vendor/github.com/jpillora/go-ogle-analytics/conv.go
generated
vendored
Normal file
19
vendor/github.com/jpillora/go-ogle-analytics/conv.go
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package ga
|
||||
|
||||
import "fmt"
|
||||
|
||||
func bool2str(val bool) string {
|
||||
if val {
|
||||
return "1"
|
||||
} else {
|
||||
return "0"
|
||||
}
|
||||
}
|
||||
|
||||
func int2str(val int64) string {
|
||||
return fmt.Sprintf("%d", val)
|
||||
}
|
||||
|
||||
func float2str(val float64) string {
|
||||
return fmt.Sprintf("%.6f", val)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue