Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 520 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 520 Bytes

Plugify Language Package for Go

Usage

Initialize your module

go mod init example.com/my-go-plugin

Get the go-plugify module

Note that you need to include the v in the version tag.

go get github.com/untrustedmodders/[email protected]
package main

import (
	"fmt"
	"github.com/untrustedmodders/go-plugify"
)

func init() {
	plugify.OnPluginStart(func() {
		fmt.Println("OnPluginStart")
	})

	plugify.OnPluginEnd(func() {
		fmt.Println("OnPluginEnd")
	})
}

func main() {}