gilc

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 11 Imported by: 1

README

gilc

Go ILeoConsole - ILeoConsole re-implementation and plugin framework in Go

Let's make Go a first-class language for LeoConsole plugins!

Docs

https://alexcoder04.github.io/gilc

Advantages and Disadvantages

https://alexcoder04.github.io/gilc/why.html

Other libraries that might be useful for plugin development:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigGet

func ConfigGet(key string) (string, error)

func ConfigSet

func ConfigSet(key string, value string) error

func ReadLine

func ReadLine(prompt string) (string, error)

func Run

func Run()

func Setup

func Setup(description string, pmain func(IData), pcommand func(IData, []string), pshutdown func(IData))

func Write

func Write(msg string)

func WriteLine

func WriteLine(msg string)

func YesNoDialog

func YesNoDialog(prompt string, acceptEnter bool) (bool, error)

Types

type IData

type IData struct {
	Username     string `json:"Username"`
	SavePath     string `json:"SavePath"`
	DownloadPath string `json:"DownloadPath"`
	Version      string `json:"Version"`
}

type IPlugin

type IPlugin struct {
	Name        string
	Description string
	Data        IData
	Main        func(IData)
	Command     func(IData, []string)
	Shutdown    func(IData)
}
var Plugin IPlugin = IPlugin{}

Jump to

Keyboard shortcuts

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