Documentation

Overview

    Package ptr provides helpers to convert basic types to pointers.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Bool

    func Bool(x bool) *bool

      Bool converts a bool to a pointer

      func Float64

      func Float64(x float64) *float64

        Float64 converts a float64 to a pointer

        func Int16

        func Int16(x int16) *int16

          Int16 converts an int32 to a pointer

          func Int32

          func Int32(x int32) *int32

            Int32 converts an int32 to a pointer

            func Int64

            func Int64(x int64) *int64

              Int64 converts an int64 to a pointer

              func Int8

              func Int8(x int8) *int8

                Int8 converts an int8 to a pointer

                func String

                func String(x string) *string

                  String converts a string to a pointer

                  Types

                  This section is empty.

                  Source Files