to

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 0 Imported by: 6

README

Azure Type Conversion Module for Go

PkgGoDev Build Status Code Coverage

The to module contains various helper type-conversion functions. These modules follow the Azure SDK Design Guidelines for Go.

Getting started

This project uses Go modules for versioning and dependency management.

To add the latest version to your go.mod file, execute the following command.

go get -u github.com/Azure/azure-sdk-for-go/sdk/to

General documentation and examples can be found on pkg.go.dev.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Overview

Package to contains various helper type-conversion functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the provided bool.

func Float32Ptr

func Float32Ptr(i float32) *float32

Float32Ptr returns a pointer to the provided float32.

func Float64Ptr

func Float64Ptr(i float64) *float64

Float64Ptr returns a pointer to the provided float64.

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to the provided int32.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to the provided int64.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the provided string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL