model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageUnknown  = Language(0)
	LanguageBash     = Language(1)
	LanguageYAML     = Language(2)
	LanguageMarkdown = Language(3)
	LanguageText     = Language(4)
	LanguageTOML     = Language(5)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language int

type Parameter

type Parameter struct {
	Key          string
	Name         string
	Description  string
	DefaultValue string
	Values       []string
}

type ProviderInfo

type ProviderInfo struct {
	Lines []ProviderLine
}

type ProviderLine

type ProviderLine struct {
	Key     string
	Value   string
	IsError bool
}

type Snippet

type Snippet struct {
	UUID string

	TagUUIDs []string

	TitleFunc    func() string
	ContentFunc  func() string
	LanguageFunc func() Language
	// contains filtered or unexported fields
}

func (*Snippet) GetContent

func (s *Snippet) GetContent() string

func (*Snippet) GetLanguage

func (s *Snippet) GetLanguage() Language

func (*Snippet) GetTitle

func (s *Snippet) GetTitle() string

func (*Snippet) SetTitle

func (s *Snippet) SetTitle(title string)

func (Snippet) String

func (s Snippet) String() string

Jump to

Keyboard shortcuts

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