utils

package
v0.0.0-...-e25a249 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToType

func ConvertToType[T any](data any) (*T, error)

ConvertToType is a generic function, it take any data then convert them to a pointer of type T.

func ParseYAML

func ParseYAML(content []byte) (*deployment.Deployment, error)

parseYaml parse the entire configuration file and return the corresponding deployment.

func ReturnJson

func ReturnJson(data map[string]any, w http.ResponseWriter) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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