cmd

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "1.0.6"

Functions

func Bool

func Bool(v bool) *bool

func Execute

func Execute()

func String

func String(v string) *string

Types

type ApiError

type ApiError struct {
	Error *struct {
		Source  string `json:"source"`
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

type ApiSuccess

type ApiSuccess = []Shorten

type Shorten

type Shorten struct {
	Long string `json:"long"`
	Code string `json:"code"`
}

type ShortenPayload

type ShortenPayload struct {
	Long        string  `json:"long"`
	UseFallback *bool   `json:"useFallback,omitempty"`
	Custom      *string `json:"custom,omitempty"`
}

Jump to

Keyboard shortcuts

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