boolconv

package module
v0.0.0-...-9ef5633 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 3 Imported by: 5

README

boolconv

Build Status codecov.io License

Golang bool converts byte slice.

Installation

$ go get -u github.com/osamingo/boolconv

Quick Start

License

Released under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool byte

Bool is a wrap of byte.

const (
	// False means false on Bool.
	False Bool = iota
	// True means true on Bool.
	True
)

func BtoB

func BtoB(b []byte) Bool

BtoB converts bytes into Bool.

func NewBool

func NewBool(b bool) Bool

NewBool converts bool into Bool.

func NewBoolByInterface

func NewBoolByInterface(i interface{}) (Bool, error)

NewBoolByInterface converts interface into Bool.

func (Bool) Bytes

func (b Bool) Bytes() []byte

Bytes returns []byte.

func (Bool) String

func (b Bool) String() string

String returns string.

func (Bool) Tob

func (b Bool) Tob() bool

Tob returns bool.

Jump to

Keyboard shortcuts

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