Skip to content

helpers

import "github.com/iolave/go-proxmox/pkg/helpers"

func BoolToInt

func BoolToInt(b bool) int

BoolToInt converts a bool to an int.

It returns "1" if b == true and "0" otherwise.

func NewBool

func NewBool(v bool) *bool

NewBool returns bool pointer of the passed value.

func NewInt

func NewInt(v int) *int

NewInt returns an int pointer of the passed value.

func NewStr

func NewStr(v string) *string

NewStr returns a string pointer of the passed value.