package pointerutil

import "github.com/hashicorp/vault/sdk/helper/pointerutil"

Index

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to a boolean value

func FileModePtr

func FileModePtr(o os.FileMode) *os.FileMode

FileModePtr returns a pointer to the given os.FileMode

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to an int64 value

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to a string value

func TimeDurationPtr

func TimeDurationPtr(duration string) *time.Duration

TimeDurationPtr returns a pointer to a time duration value

Source Files

pointer.go

Version
v0.18.0 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 month ago

Tools for package owners.