Learn how to get started with Treblle using our GO SDK in less than 2 minutes on any new or existing API
go get github.com/treblle/treblle-go
You can ⭐ our Github repo to stay up to date with new updates
import "github.com/treblle/treblle-go" func main() { treblle.Configure(treblle.Configuration{ APIKey: "YOUR API KEY HERE", ProjectID: "YOUR PROJECT ID HERE" } // REST OF YOUR APP}
HEADS UP: You need to create an account to get your API KEY and PROJECT ID
mux := http.NewServeMux()mux.Handle("/", treblle.Middleware(yourHandler))
You and your team just got these amazing features:
import "github.com/treblle/treblle-go" func main() { treblle.Configure(treblle.Configuration{ APIKey: "YOUR API KEY HERE", ProjectID: "YOUR PROJECT ID HERE", KeysToMask: []string{"secret", "private", "user_ssn"} // Keys Treblle should mask } // REST OF YOUR APP}
PRO TIP: Data is masked before it even leaves your server