Easy and safe type converting from one pointer to value & value to pointer in Go
Jump To:
Use go get
to retrieve the pkg to add it to your GOPATH
workspace, or
project's Go module dependencies.
go get github.com/mdsohelmia/typeconv
To update the pkg use go get -u
to retrieve the latest version of the pkg.
go get -u github.com/mdsohelmia/typeconv
package main
import (
"fmt"
"github.com/mdsohelmia/typeconv"
)
func main() {
boolPtr := typeconv.Bool(true)
fmt.Println(boolPtr)
boolValue := typeconv.BoolValue(boolPtr)
fmt.Println(boolValue)
}
We work hard to provide a high-quality and useful SDK for our AWS services, and we greatly value feedback and contributions from our community. Please review our contributing guidelines before submitting any [issues] or [pull requests][pr] to ensure we have all the necessary information to effectively respond to your bug report or contribution.