Documentation
¶
Index ¶
- Constants
- func MapToSlice(m map[float64]struct{}) []float64
- func Parse(v string) (float64, error)
- func Ptr(v float64) *float64
- func PtrDefToNil(v float64, def float64) *float64
- func PtrZeroToNil(v float64) *float64
- func SafeIndex(s []float64, i int) float64
- func SafeIndexPtr(s []float64, i int) *float64
- func SliceToMap(s []float64) map[float64]struct{}
- func SwapMap(m map[float64]float64) (map[float64]float64, error)
- func Val(v *float64) float64
- func ValDef(v *float64, def float64) float64
- type Slice
Constants ¶
View Source
const (
// BitSize is the size in bits of this type.
BitSize = 64
)
Variables ¶
This section is empty.
Functions ¶
func MapToSlice ¶
MapToSlice converts a map to slice.
func PtrDefToNil ¶
PtrDefToNil returns a pointer to the value, or nil if "def".
func PtrZeroToNil ¶
PtrZeroToNil returns a pointer to the value, or nil if 0.
func SafeIndexPtr ¶
SafeIndexPtr returns "s[i]" if possible, an nil otherwise.
func SliceToMap ¶
SliceToMap converts a slice to map.
Types ¶
Click to show internal directories.
Click to hide internal directories.