format

package
v0.0.0-...-e24f972 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(format string, info map[string]any) (map[string]string, error)

Convert convert node info to map

func RegisterFormatter

func RegisterFormatter(format string, converter Converter)

RegisterFormatter format converter instance

Types

type Converter

type Converter func(info map[string]any) (map[string]string, error)

Converter converts node info to map

type SimpleConverter

type SimpleConverter struct {
	// contains filtered or unexported fields
}

SimpleConverter simple format converter

Jump to

Keyboard shortcuts

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