util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectRenderContexts

func CollectRenderContexts(cfg *model.Config, commandLineProperties map[string]string) []*model.RenderContext

CollectRenderContexts collects render contexts for the given database configurations

func LoadFiles added in v0.0.5

func LoadFiles(cfg *model.Config) ([]*model.File, error)

LoadFiles loads all files from the given path

func ReadConfig

func ReadConfig(configPath string) (*model.Config, error)

ReadConfig reads the configuration file from the given path

func ToJson

func ToJson(v any) string

ToJson converts a value to a JSON string.

func ToMap

func ToMap(v any) map[string]interface{}

ToMap converts a value to a map[string]interface{}. If the value is already a map[string]interface{}, it is returned as is.

func ToYaml

func ToYaml(v any) string

ToYaml converts a value to a YAML string.

func WriteFile added in v0.0.5

func WriteFile(filename string, content []byte) error

WriteFile writes the content to the given file, creating directories if necessary

Types

This section is empty.

Jump to

Keyboard shortcuts

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