utils

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDefault

func CheckDefault(value string, defaultValue string) string

CheckDefault checks if value is empty and returns default value

func FormatTemplate

func FormatTemplate(tmpl string, intr any) (string, error)

FormatTemplate format template with intr as input

func IsInListOfStrings

func IsInListOfStrings(list []string, value string) bool

IsInListOfStrings checks if value is in list

Types

This section is empty.

Jump to

Keyboard shortcuts

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