format

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boolean

func Boolean(val interface{}) (text.Colors, string, error)

Boolean returns val formatted as a boolean

func DatabaseState

func DatabaseState(val interface{}) (text.Colors, string, error)

DatabaseState implements Format function for database states

func LoadBalancerState

func LoadBalancerState(val interface{}) (text.Colors, string, error)

LoadBalancerState implements Format function for load-balancer states

func PossiblyUnknownString

func PossiblyUnknownString(val interface{}) (text.Colors, string, error)

PossiblyUnkonwnString outputs "Unknown" in light black if input value is an empty string, otherwise passesthrough the input value.

func ServerState

func ServerState(val interface{}) (text.Colors, string, error)

ServerState implements Format function for server states

func StorageState

func StorageState(val interface{}) (text.Colors, string, error)

StorageState implements Format function for storage states

Types

This section is empty.

Jump to

Keyboard shortcuts

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