utils

package module
v0.0.0-...-6995082 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToFile

func AppendToFile(path string, content string)

func CreateUUID

func CreateUUID() string

func MarkdownToHTML

func MarkdownToHTML(md []byte) []byte

func MarkdownToText

func MarkdownToText(md []byte) []byte

func SerializeToJSON

func SerializeToJSON(any interface{}, prettyPrint bool) (string, error)

Serializes any interface to JSON if possible

func SerializeToXML

func SerializeToXML(any interface{}, prettyPrint bool) (string, error)

Serializes any interface to XML if possible

func Uint16ToBytes

func Uint16ToBytes(n uint16) []byte

Uint16ToBytes converts a uint16 type to a byte array

func Uint64ToBytes

func Uint64ToBytes(n uint64) []byte

Uint64ToBytes converts a uint64 type to a byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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