data

package
v0.0.0-...-8b0f75f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StringFormat     = "string"
	JsonFormat       = "json"
	YamlFormat       = "yaml"
	PropertiesFormat = "properties"
)

Variables

This section is empty.

Functions

func ToJson

func ToJson(envcdData EnvcdData) string

ToJson envcd data convert to json string

Types

type EnvcdData

type EnvcdData struct {
	Format string      `json:"format"`
	Data   interface{} `json:"data"`
}

EnvcdData for dictionary value

func Json

func Json(data interface{}) EnvcdData

Json create json format envcd data

@param data of json format

func Properties

func Properties(data interface{}) EnvcdData

Properties create properties format envcd data

@param data of properties format

func String

func String(data interface{}) EnvcdData

String create string format envcd data

@param data of string format

func ToEnvcdData

func ToEnvcdData(jsonString string) EnvcdData

ToEnvcdData json string convert to EnvcdData

func Yaml

func Yaml(data interface{}) EnvcdData

Yaml create yaml format envcd data

@param data of yaml format

Jump to

Keyboard shortcuts

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