go-conv

module
v0.0.0-...-09625d6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT

README

go-conv

Package conv provides tools for converting text into Go data types.

This includes text stored in []byte, []rune, and string.

For example, converting a string to an (Golang) integer. Or converting a string to a (Golang) boolean. Etc.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-conv

GoDoc

Example

import "github.com/reiver/go-conv/bytes"

// ...

var text []bytes = []byte("-25")

// ...

value, err := convbytes.Int64(text)
import "github.com/reiver/go-conv/bytes"

// ...

var text []bytes = []byte("true")

// ...

value, err := convbytes.Bool(text)

Directories

Path Synopsis
Package convbytes provides tools for converting text into builtin and custom Go data types.
Package convbytes provides tools for converting text into builtin and custom Go data types.
Package convwriter provides tools for converting builtin and custom Go data types into text.
Package convwriter provides tools for converting builtin and custom Go data types into text.

Jump to

Keyboard shortcuts

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