command

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllCommands

func AddAllCommands(rootCmd *cobra.Command)

func AddExtCommand

func AddExtCommand(rootCmd *cobra.Command)

func AddFeedCommand added in v0.0.16

func AddFeedCommand(rootCmd *cobra.Command)

func AddFrontmatterCommand

func AddFrontmatterCommand(rootCmd *cobra.Command)

func AddHtmlCommand

func AddHtmlCommand(rootCmd *cobra.Command)

func AddIcoCommand

func AddIcoCommand(rootCmd *cobra.Command)

func AddJpegCommand

func AddJpegCommand(rootCmd *cobra.Command)

func AddJsonCommand

func AddJsonCommand(rootCmd *cobra.Command)

func AddMimeTypeCommand

func AddMimeTypeCommand(rootCmd *cobra.Command)

func AddPngCommand

func AddPngCommand(rootCmd *cobra.Command)

func AddSvgCommand

func AddSvgCommand(rootCmd *cobra.Command)

func AddTextCommand

func AddTextCommand(rootCmd *cobra.Command)

func AddVersionCommand

func AddVersionCommand(rootCmd *cobra.Command, versionInfo VersionInfo)

func AddXmlCommand

func AddXmlCommand(rootCmd *cobra.Command)

func AddYamlCommand

func AddYamlCommand(rootCmd *cobra.Command)

func IsAscii

func IsAscii(b byte) bool

func IsAsciiBytes

func IsAsciiBytes(bytes []byte) error

func IsBadControl

func IsBadControl(b byte) bool

func IsValidUrl added in v0.0.16

func IsValidUrl(target string) error

func Substr added in v0.0.16

func Substr(input string, start int, length int) string

UTF8-safe substring

Types

type VersionInfo

type VersionInfo struct {
	Commit  string `json:"commit"`
	LastMod string `json:"lastmod"`
	Version string `json:"version"`
	Builder string `json:"builder"`
}

Jump to

Keyboard shortcuts

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