commands

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArgValidator = &Validator{}

ArgValidator - global instance of validator

View Source
var Version = "local-development"

Version - variable used for ldflags to inject Version number to binary

Functions

func Execute

func Execute()

Execute - starts the root command

Types

type Validator added in v0.0.7

type Validator struct{}

Validator - used to validate arguments

func (*Validator) ValidateIP added in v0.0.7

func (*Validator) ValidateIP(ip string, paramName string) bool

ValidateIP - validates IP - will only return true if correct IPV4

Jump to

Keyboard shortcuts

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