yutc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromYaml

func FromYaml(s string) interface{}

FromYaml converts a yaml string to an interface

func MustFromYaml

func MustFromYaml(s string) (interface{}, error)

MustFromYaml converts a yaml string to an interface or returns an error

func MustToYaml

func MustToYaml(v interface{}) (string, error)

MustToYaml converts an interface to a yaml string or returns an error

func ToYaml

func ToYaml(v interface{}) string

ToYaml converts an interface to a yaml string

func WrapComment added in v0.0.5

func WrapComment(prefix string, width int, comment string) string

WrapComment wraps a text to a give with and then prefixes the lines (e.g. "#" for a python comment)

func WrapText added in v0.0.5

func WrapText(width int, text string) []string

WrapText wraps text to a given width

Types

This section is empty.

Jump to

Keyboard shortcuts

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