Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess    = 0
	ExitError      = 1
	ExitAuth       = 2
	ExitNotFound   = 3
	ExitValidation = 4
)

Variables

This section is empty.

Functions

func Err

func Err(msg string)

func MergeJSON

func MergeJSON(cmd *cli.Command, body map[string]any) error

func MergeJSONForm

func MergeJSONForm(cmd *cli.Command, form map[string]string) error

func RequireFlag

func RequireFlag(cmd interface{ String(string) string }, flag, envHint string) (string, error)

Types

type ZohoAPIError

type ZohoAPIError struct {
	ZohoCliError
	StatusCode int
}

func NewAPIError

func NewAPIError(statusCode int, body string) *ZohoAPIError

type ZohoCliError

type ZohoCliError struct {
	Message  string
	ExitCode int
}

func NewAuthError

func NewAuthError(msg string) *ZohoCliError

func NewError

func NewError(msg string) *ZohoCliError

func NewNotFoundError

func NewNotFoundError(msg string) *ZohoCliError

func NewValidationError

func NewValidationError(msg string) *ZohoCliError

func (*ZohoCliError) Error

func (e *ZohoCliError) Error() string

Jump to

Keyboard shortcuts

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