You can find a detailed specification of SE2’s APIs
here.
Documentation
Like most Go packages, you can find complete and up to date technical documentation forse2-go on pkg.go.dev. Those docs are generated from inline comments in the se2-go source code.
Install SE2 for Go
In a directory with ago.mod file, run:
Configuration
This example sets up a basic client with the token generated in Subo or with the web app. These2.Client object created here assumes that SE2 is running on the same host on its default ports. Head on over to the se2-go repository on GitHub to try out this code and see more examples.
client.go
Build and run a plugin
We can now integrate SE2 into an application.se2-go has access to all of SE2’s APIs. It can run builds, list existing plugins, run tests, and execute plugins.
Behind the scenes, se2-go manages authentication, so you don’t have to worry about setting the right HTTP headers when interacting with the SE2 API.
main.go
client.Exec or client.ExecString.
