check

package
v0.0.0-...-5122971 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfError

func IfError(err error) bool

IfError prints error, if it is not nil

func IsYaml

func IsYaml(path string) bool

IsYaml - check if file exists and yaml

func Path

func Path(path string)

Path - create path if not exist

func TimeToSec

func TimeToSec(timeout string) int64

TimeToSec checks if time is correct and converts it to seconds

func ToMap

func ToMap(allHosts []models.Host) map[string]models.Host

ToMap converts struct to map

func ToStruct

func ToStruct(hostsMap map[string]models.Host) []models.Host

ToStruct converts map to struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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