goic
is a library for converting go's interface{} to variable type.
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"
func Sample(val interface{}) {
u,err := goic.ToUint()
if err != nil {
// error handling
}
}