utils

package
v0.0.0-...-df570b3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigitsOnly

func DigitsOnly(fl string) string

DigitsOnly removes all non-digits characters in a string.

func ParseFloat

func ParseFloat(fl string) float64

ParseFloat parses a string into a float if fails returns the default value 0.

func ParseInt

func ParseInt(fl string) int

ParseInt parses a string into a int if fails returns the default value 0.

func ParseIntBase16

func ParseIntBase16(fl string) int

ParseIntBase16 parses a string into a int using base16.

Types

This section is empty.

Jump to

Keyboard shortcuts

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