utils

package
v0.0.0-...-816fd83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi

func Btoi(b bool) int

Btoi is a simple helper to translate booleans into their integer counterparts. This is made because frappe-charts uses 0's and 1's, but this library also provides helper functions that allow you to do things such as: chartArgs.SetIsNavigable(true) instead of: chartArgs.IsNavigable = 1

func FloatSliceToInterface

func FloatSliceToInterface(values []float64) []interface{}

FloatSliceToInterface helps convert a float64 array to an interface{}.

func NumberLabelsToStr

func NumberLabelsToStr(labels []int) []string

NumberLabelsToStr helps convert a number array (ex: of years) to string labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL