util

package
v0.0.0-...-46c65cd Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalJsonNoHtmlEscape

func MarshalJsonNoHtmlEscape(v any) (string, error)

func ReadEmbeddedFile

func ReadEmbeddedFile(res *embed.FS, path string) (string, error)

func ReadEmbeddedFiles

func ReadEmbeddedFiles(res *embed.FS, paths ...string) ([]string, error)

Types

type StringMapping

type StringMapping[T comparable] struct {
	ToValue  map[string]T
	ToString map[T]string
}

func NewStringMapping

func NewStringMapping[T comparable](mapping map[T]string) *StringMapping[T]

Jump to

Keyboard shortcuts

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