Skip to content
/ goic Public

Go language' interface converter. (ex. from interface{} to uint)

License

Notifications You must be signed in to change notification settings

hapoon/goic

Repository files navigation

goic

GoDoc Build Status Coverage Status MIT License

goic is a library for converting go's interface{} to variable type.

Installation

Make sure that Go is installed on your computer. Type the following command in your terminal:

go get gopkg.in/hapoon/goic.v1

After it the package is ready to use.

Add following line in your *.go file:

import "gopkg.in/hapoon/goic.v1"

Usage

interface{} to uint

func Sample(val interface{}) {
    u,err := goic.ToUint()
    if err != nil {
        // error handling
    }
}

License

MIT License

About

Go language' interface converter. (ex. from interface{} to uint)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published