Skip to content

typesconveter is a simple Go package that makes it easy to convert values to pointers and pointers to values.

Notifications You must be signed in to change notification settings

mdsohelmia/typeconv

Repository files navigation

typeconv

Easy and safe type converting from one pointer to value & value to pointer in Go

Jump To:

Getting Started

Installing

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

Quick Examples

 package main

import (
	"fmt"

	"github.com/mdsohelmia/typeconv"
)

func main() {
	boolPtr := typeconv.Bool(true)
	fmt.Println(boolPtr)
	boolValue := typeconv.BoolValue(boolPtr)
	fmt.Println(boolValue)
}

Contributing

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.

About

typesconveter is a simple Go package that makes it easy to convert values to pointers and pointers to values.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages