help

package
v0.0.0-...-cba5bb6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() *template.Template

func PrettyJson

func PrettyJson(data interface{}) (string, error)

func Render

func Render(data HelpObject) string

Types

type HelpObject

type HelpObject struct {
	Template      TextTemplate
	Err           error
	Status        *common.UserStatusOutput
	Notifications []common.FileNotification
	FilePath      string
	Protected     bool
	Method        string
	SeeAlso       []HelpSeeAlso
	Token         string
	Email         string
}

type HelpSeeAlso

type HelpSeeAlso struct {
	Method string
	Path   string
}

type TextTemplate

type TextTemplate int
const (
	EmailAfterRegistration TextTemplate = iota
	EmailNotification
	EmailPaymentCancel
	EmailPaymentPlease
	EmailValidation
	FileMeta
	SyncMeta
	GuiEmailRequired
	GuiInfo
	GuiPassRequired
	GuiPitch
	GuiTos
	HtmlLinkError
	HtmlLinkExpired
	HtmlVerificationOk
	HtmlWaitPaypal
	TokenMeta
	Profile
	AllHelp
	EmailQuotaLeft
)

func (TextTemplate) String

func (i TextTemplate) String() string

Jump to

Keyboard shortcuts

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