Documentation ¶
Index ¶
- Variables
- func AppendSnippet(cx *cursor.CurCtx) []mg.Completion
- func DeferSnippet(cx *cursor.CurCtx) []mg.Completion
- func DocSnippet(cx *cursor.CurCtx) []mg.Completion
- func FuncSnippet(cx *cursor.CurCtx) []mg.Completion
- func GenDeclSnippet(cx *cursor.CurCtx) []mg.Completion
- func InitFuncSnippet(cx *cursor.CurCtx) []mg.Completion
- func MainFuncSnippet(cx *cursor.CurCtx) []mg.Completion
- func MapSnippet(cx *cursor.CurCtx) []mg.Completion
- func MethodSnippet(cx *cursor.CurCtx) []mg.Completion
- func MutexSnippet(cx *cursor.CurCtx) []mg.Completion
- func PackageNameSnippet(cx *cursor.CurCtx) []mg.Completion
- func ReturnSnippet(cx *cursor.CurCtx) []mg.Completion
- func TypeSnippet(cx *cursor.CurCtx) []mg.Completion
- type SnippetFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultSnippets = []SnippetFunc{ PackageNameSnippet, MainFuncSnippet, InitFuncSnippet, FuncSnippet, MethodSnippet, GenDeclSnippet, MapSnippet, TypeSnippet, AppendSnippet, DocSnippet, DeferSnippet, MutexSnippet, ReturnSnippet, } )
Functions ¶
func AppendSnippet ¶
func AppendSnippet(cx *cursor.CurCtx) []mg.Completion
func DeferSnippet ¶
func DeferSnippet(cx *cursor.CurCtx) []mg.Completion
func DocSnippet ¶
func DocSnippet(cx *cursor.CurCtx) []mg.Completion
func FuncSnippet ¶
func FuncSnippet(cx *cursor.CurCtx) []mg.Completion
func GenDeclSnippet ¶
func GenDeclSnippet(cx *cursor.CurCtx) []mg.Completion
func InitFuncSnippet ¶
func InitFuncSnippet(cx *cursor.CurCtx) []mg.Completion
func MainFuncSnippet ¶
func MainFuncSnippet(cx *cursor.CurCtx) []mg.Completion
func MapSnippet ¶
func MapSnippet(cx *cursor.CurCtx) []mg.Completion
func MethodSnippet ¶
func MethodSnippet(cx *cursor.CurCtx) []mg.Completion
func MutexSnippet ¶
func MutexSnippet(cx *cursor.CurCtx) []mg.Completion
func PackageNameSnippet ¶
func PackageNameSnippet(cx *cursor.CurCtx) []mg.Completion
func ReturnSnippet ¶
func ReturnSnippet(cx *cursor.CurCtx) []mg.Completion
func TypeSnippet ¶
func TypeSnippet(cx *cursor.CurCtx) []mg.Completion
Types ¶
type SnippetFunc ¶
type SnippetFunc func(*cursor.CurCtx) []mg.Completion
Click to show internal directories.
Click to hide internal directories.