util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the passed bool b.

func Duration

func Duration(d time.Duration) *time.Duration

Duration returns a pointer to the passed time.Duration d.

func Int

func Int(i int) *int

Int returns a pointer to the passed integer i.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the passed integer i.

func IntSlice

func IntSlice(is []int) *[]int

IntSlice returns a pointer to the passed integer slice is

func RandString

func RandString(n int) string

RandString will generate a random string of fixed length

func String

func String(s string) *string

String returns a pointer to the passed string s.

func StringSlice

func StringSlice(ss []string) *[]string

StringSlice returns a pointer to the passed string slice ss

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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