Skip to content

mufti1/interconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Golang convert interface into any data type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published