utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlock

func GetBlock(value interface{}) map[string]interface{}

func ParseRegion

func ParseRegion(region string) render.Region

func ParseServiceEnv

func ParseServiceEnv(env string) render.ServiceEnv

func ParseServiceType

func ParseServiceType(serviceType string) render.ServiceType

func Struct

func Struct(input interface{}, output interface{}) error

func ToJson

func ToJson(value interface{}) map[string]interface{}

func TryString

func TryString(value map[string]interface{}, name string) string

func TryStringRef

func TryStringRef(value map[string]interface{}, name string) *string

Types

type YesNo

type YesNo string
const (
	Yes YesNo = "yes"
	No  YesNo = "no"
)

func ToYesNo

func ToYesNo(value interface{}) *YesNo

Jump to

Keyboard shortcuts

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