flags

package
v0.0.0-...-d7e55e0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package flags defines flag types that can be used with the default flag package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

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

Duration defines a flag for time.Duration values. It works the same way as flag.Duration except that it als parses "XXd" values as days.

func UnixTime

func UnixTime(name string, value time.Time, usage string) *time.Time

UnixTime defines a flag for time.Time values formatted as Unix date.

Types

This section is empty.

Jump to

Keyboard shortcuts

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