flags

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Opt) *pvdr

Types

type Opt

type Opt func(s *pvdr)

func WithCodec

func WithCodec(codec store.Codec) Opt

func WithKeyCB

func WithKeyCB(cb func(key string) string) Opt

func WithLowerCase

func WithLowerCase(b ...bool) Opt

func WithPrefix

func WithPrefix(prefix string, strippedPrefix ...string) Opt

WithPrefix gives a filter prefix for env var name.

Only names which have given prefix are available. Such as app.Name()+"_".

The filtered names will be stripped by strippedPrefix.

func WithStorePrefix

func WithStorePrefix(position string) Opt

WithStorePrefix gives a dotted key prefix for store.Store.

Such as: "app.cmd", ..

func WithUnderlineToDot

func WithUnderlineToDot(b ...bool) Opt

Jump to

Keyboard shortcuts

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