Installation
Describes github.com/stxapp/stx-go v0.3.1, the current release.
go get github.com/stxapp/stx-goRequires Go 1.24 or newer. The module depends on the standard library and one WebSocket library, github.com/coder/websocket.
Importing
Section titled “Importing”The package name is stx:
package main
import ( "fmt"
stx "github.com/stxapp/stx-go")
func main() { fmt.Println("stx-go", stx.Version)}stx-go 0.1.0OAuth for apps lives in its own package, github.com/stxapp/stx-go/oauth. Import it only if you build an app that acts for other STX members; see Apps.
Run an example
Section titled “Run an example”The examples in this guide are complete programs or fragments of one. Save a complete program as main.go in a module that requires the SDK, and run it:
go mod init example.com/stx-quickstartgo get github.com/stxapp/stx-gogo run .Fragments assume a ctx (a context.Context) and a client from stx.New(), as in the overview.
Pin a version in production. Before 1.0.0, a minor release can change the API.
Docs version v1.10.5

