godock: github.com/sqp/godock/libs/helper/cast Index | Files

package cast

import "github.com/sqp/godock/libs/helper/cast"

Package cast provides recasts for lists of ints and floats.


Package Files


func BoolToInt Uses

func BoolToInt(in bool) int

BoolToInt casts a bool to an int.

func FloatsToInts Uses

func FloatsToInts(in []float64) []int

FloatsToInts casts a list of floats to ints.

func IntsToFloats Uses

func IntsToFloats(in []int) []float64

IntsToFloats casts a list of ints to floats.

Package cast is imported by 2 packages. Updated 2016-07-21. Refresh now. Tools for package owners.