Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.27 KB

README.md

File metadata and controls

47 lines (41 loc) · 1.27 KB

Interconv

Build Status Coverage Status Go Report Card GoDoc

Description

This is package golang for convert interface into any data type

How To Use

  • get package
go get github.com/mufti1/interconv/package
  • import
import "github.com/mufti1/interconv/package"
  • use
var i interface{}
// example for float64
// you can use error return if you need it
numFloat64 , _ := interconv.ParseFloat64(i)

Status

Completed and open to update

Data type that can be converted

  • Int
  • Int8
  • Int32
  • Int16
  • Int64
  • Float32
  • Float64
  • Boolean
  • String
  • Uint
  • Uint8
  • Uint16
  • Uint32
  • Uint64
  • Uintptr

License

it is released under the MIT license. See LICENSE.