app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PortFlag = &cli.IntFlag{
	Name:  "port",
	Usage: "port",
}

Functions

func Abs

func Abs(path string) (string, error)

func EmptyDir

func EmptyDir(path, name string) (string, error)

func IsEmptyDir

func IsEmptyDir(path string) (bool, error)

func MustPort

func MustPort(c *cli.Context) int

func MustPortOrRandom

func MustPortOrRandom(c *cli.Context, preference int) int

func MustRandomPort

func MustRandomPort(c *cli.Context, preference int) int

func Port

func Port(c *cli.Context) int

func PortOrRandom

func PortOrRandom(c *cli.Context, preference int) (int, error)

func RandomPort

func RandomPort(c *cli.Context, preference int) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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