util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

func GetAvailableIP

func GetAvailableIP(ipAndMask string) []string

func GetAvailableIPRange

func GetAvailableIPRange(ipStart, ipEnd string) []string

func GetLocalIP

func GetLocalIP() (string, error)

func Home

func Home() (string, error)

returns the home directory for the executing user.

func IPAddressToCIDR

func IPAddressToCIDR(ipAdress string) string

func IPMaskStringToCIDR

func IPMaskStringToCIDR(netmask string) string

func IsExist

func IsExist(path string) bool

func LocalIP

func LocalIP() string

func ParseIp

func ParseIp(ip string) []string

func Render

func Render(tmpl *template.Template, variables map[string]interface{}) (string, error)

Render text template with given `variables` Render-context

Types

type Data

type Data map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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