cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var (
	LoremIpsumIcon     = &aw.Icon{Value: "lorem-ipsum.pdf"}
	LoremIpsumGrayIcon = &aw.Icon{Value: "lorem-ipsum-gray.pdf"}
	Base64Icon         = &aw.Icon{Value: "base64.pdf"}
	DevToysIcon        = &aw.Icon{Value: "devtoys.pdf"}
	DownloadIcon       = &aw.Icon{Value: "download.pdf"}
	EncodeDecodeIcon   = &aw.Icon{Value: "encode-decode.pdf"}
	HashIcon           = &aw.Icon{Value: "hash.pdf"}
	HashGrayIcon       = &aw.Icon{Value: "hash-gray.pdf"}
	HtmlIcon           = &aw.Icon{Value: "html.pdf"}
	JsonIcon           = &aw.Icon{Value: "json.pdf"}
	JwtIcon            = &aw.Icon{Value: "jwt.pdf"}
	JwtGrayIcon        = &aw.Icon{Value: "jwt-gray.pdf"}
	QRcodeIcon         = &aw.Icon{Value: "qrcode.pdf"}
	TextChangeCaseIcon = &aw.Icon{Value: "text-change-case.pdf"}
	UrlIcon            = &aw.Icon{Value: "url.pdf"}
	UuidIcon           = &aw.Icon{Value: "uuid.pdf"}
	UuidGrayIcon       = &aw.Icon{Value: "uuid-gray.pdf"}
	NumberIcon         = &aw.Icon{Value: "number.pdf"}
	NumberGrayIcon     = &aw.Icon{Value: "number-gray.pdf"}
)
View Source
var M = map[string]struct {
	Fn       func(string) string
	Subtitle string
}{
	"camel":    {changecase.Camel, "Convert to a string with the separators denoted by having the next letter capitalized"},
	"constant": {changecase.Constant, "Convert to an upper case, underscore separated string"},
	"dot":      {changecase.Dot, "Convert to a lower case, period separated string"},
	"lower":    {changecase.Lower, "Convert to a string in lower case"},
	"lcfirst":  {changecase.LcFirst, "Convert to a string with the first character lower cased"},
	"no":       {changecase.No, "Convert the string without any casing (lower case, space separated)"},
	"param":    {changecase.Param, "Convert to a lower case, dash separated string"},
	"pascal":   {changecase.Pascal, "Convert to a string denoted in the same fashion as camelCase, but with the first letter also capitalized"},
	"path":     {changecase.Path, "Convert to a lower case, slash separated string"},
	"sentence": {changecase.Sentence, "Convert to a lower case, space separated string"},
	"snake":    {changecase.Snake, "Convert to a lower case, underscore separated string"},
	"swap":     {changecase.Swap, "Convert to a string with every character case reversed"},
	"title":    {changecase.Title, "Convert to a space separated string with the first character of every word upper cased"},
	"upper":    {changecase.Upper, "Convert to a string in upper case"},
	"ucfirst":  {changecase.UcFirst, "Convert to a string with the first character upper cased"},
	"hashtag": {func(s string) string {
		array := regexp.MustCompile(" +").Split(s, -1)
		for i := 0; i < len(array); i++ {
			if len(array[i]) > 0 && array[i][0:1] != "#" {
				array[i] = "#" + strings.ToLower(array[i])
			}
		}
		return strings.Join(array, " ")
	}, "Convert to a string, space separated string with hashtag symbols"},
}

Functions

func BinaryFormat

func BinaryFormat(in string) string

func CheckForUpdate

func CheckForUpdate()

func DecimalFormat

func DecimalFormat(in string) string

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func HexFormat

func HexFormat(in string) string

func OctalFormat

func OctalFormat(in string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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