margo

package
v0.0.0-...-52b1b20 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MySnippets = golang.SnippetFuncs(
	func(cx *golang.CompletionCtx) []mg.Completion {

		if !cx.Scope.Is(golang.BlockScope) {
			return nil
		}

		return []mg.Completion{
			{
				Query: "if err",
				Title: "err != nil { return }",
				Src:   "if ${1:err} != nil {\n\treturn $0\n}",
			},
		}
	},
)

MySnippets is a slice of functions returning our own snippets

Functions

func Margo

func Margo(m mg.Args)

Margo is the entry-point to margo

Types

type DayTimeStatus

type DayTimeStatus struct {
	mg.ReducerType
}

DayTimeStatus adds the current day and time to the status bar

func (DayTimeStatus) RMount

func (dts DayTimeStatus) RMount(mx *mg.Ctx)

func (DayTimeStatus) Reduce

func (dts DayTimeStatus) Reduce(mx *mg.Ctx) *mg.State

Jump to

Keyboard shortcuts

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