util

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackages

func GetPackages(dir string) (map[string]*ast.Package, error)

func GetTagName

func GetTagName(tag string) string

func GoFmt

func GoFmt(path string)

func MapToAssciiSortJson

func MapToAssciiSortJson(m map[string]interface{}) string

func MapToSplice

func MapToSplice[T comparable, V any](m map[T]V) []T

func PrintJson

func PrintJson(js interface{})

func ToJsonString

func ToJsonString(js interface{}) string

Types

type Empty

type Empty struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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