flagenv

package module
Version: v0.0.0-...-2956c45 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: BSD-2-Clause Imports: 6 Imported by: 28

README

Flag

Flag adapter with env default values

Continuous integration

Jenkins

Copyright (c) 2016, Benjamin Borbe <bborbe@rocketnews.de>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above
     copyright notice, this list of conditions and the following
     disclaimer in the documentation and/or other materials provided
     with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name string, value bool, usage string) *bool

func BoolVar

func BoolVar(p *bool, name string, value bool, usage string)

func Duration

func Duration(name string, value time.Duration, usage string) *time.Duration

func DurationVar

func DurationVar(p *time.Duration, name string, value time.Duration, usage string)

func Float64

func Float64(name string, value float64, usage string) *float64

func Float64Var

func Float64Var(p *float64, name string, value float64, usage string)

func Int

func Int(name string, value int, usage string) *int

func Int64

func Int64(name string, value int64, usage string) *int64

func Int64Var

func Int64Var(p *int64, name string, value int64, usage string)

func IntVar

func IntVar(p *int, name string, value int, usage string)

func Parse

func Parse()

func PrintDefaults

func PrintDefaults()

PrintDefaults wraps flag.PrintDefaults

func Set

func Set(name, value string) error

Set wraps flag.Set

func String

func String(name string, value string, usage string) *string

func StringVar

func StringVar(p *string, name string, value string, usage string)

func Uint

func Uint(name string, value uint, usage string) *uint

func Uint64

func Uint64(name string, value uint64, usage string) *uint64

func Uint64Var

func Uint64Var(p *uint64, name string, value uint64, usage string)

func UintVar

func UintVar(p *uint, name string, value uint, usage string)

func Var

func Var(value flag.Value, name string, usage string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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