conv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package conv to help type assertions and conversions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(r interface{}, err error) (bool, error)

Bool converts interface to Bool.

func Bytes

func Bytes(r interface{}, err error) ([]byte, error)

Bytes converts interface to Bytes.

func Float64

func Float64(r interface{}, err error) (float64, error)

Float64 converts interface to Float64.

func Int

func Int(r interface{}, err error) (int, error)

Int converts interface to integer.

func Int64

func Int64(r interface{}, err error) (int64, error)

Int64 converts interface to Int64.

func String

func String(r interface{}, err error) (string, error)

String converts interface to String.

func UInt64

func UInt64(r interface{}, err error) (uint64, error)

UInt64 converts interface to UInt64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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