util

package
v0.0.0-...-63bdbfa Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package util contains generic helper functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagsFromEnv

func FlagsFromEnv()

FlagsFromEnv override flag values with values fom environment variables if they are present

func IntPtr

func IntPtr(i int) *int

IntPtr returns a pointer to int from int

func StrPtr

func StrPtr(s string) *string

StrPtr returns a pointer to string from a string

Types

type ArrayFlag

type ArrayFlag []string

ArrayFlag allows to set multiple similar flags into an array of strings

func (*ArrayFlag) Set

func (i *ArrayFlag) Set(value string) error

Set a value

func (*ArrayFlag) String

func (i *ArrayFlag) String() string

String gets a string representation of value

Jump to

Keyboard shortcuts

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