typeutil

package
v0.0.0-...-d26fc85 Latest Latest
Warning

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

Go to latest
Published: May 2, 2015 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Overview

Package typeutil provide useful type conversion functions. All numbers are considered base 10 int64 or float64.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToStr

func IntToStr(n int64) string

IntToStr converts 'n' base 10 number to its string representation.

func StrToFloat

func StrToFloat(s string) (f float64, err error)

StrToFloat converts 's' into its float64 form. 's' is expected to be a float in its string representation.

func StrToInt

func StrToInt(s string) (n int64, err error)

StrToInt converts 's' into its int64 form. 's' is expected to contain digits only.

func StrToUint

func StrToUint(s string) (n uint64, err error)

StrToUint converts 's' into its uint64 form. 's' is expected to contain digits only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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