Skip to content

tidwall/sipp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

sipp

GoDoc

Simple interprocess plugins

Create a plugin

Here's a plugin that provides a simple echo service.

package main

import "github.com/tidwall/sipp"

func main() {
    sipp.Handle(func(input []byte) []byte {
        return input
    })
}

Save to echo.go and compile:

go build echo.go

You now have a plugin named echo.

Use the plugin

package main

import "github.com/tidwall/sipp"

func main() {
    p, err := sipp.Open("echo")
    if err != nil{
        panic(err)
    }
    println(p.Send([]byte("hello")).Output())
}

Prints hello

Contact

Josh Baker @tidwall

License

Source code is available under the MIT License.

About

Simple Interprocess Plugins for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages