Skip to content

untrustedmodders/go-plugify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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() {}