v0.3.0
Changed
-
The interface
Client
is removed and the output of theNewClient
is the pointer to the struct now. It will facilitate stub of the SDK client. -
[BREAKING]
NewClient
requiresConfig
to initialise a Neon client. It's meant to improve security by eliminating
support of environment variables for authentication by default. It also simplifies the codebase.Example
package main import ( "log" neon "github.com/kislerdm/neon-sdk-go" ) func main() { client, err := neon.NewClient(neon.Config{Key: "{{.NeonApiKey}}"}) if err != nil { panic(err) } v, err := client.ListProjects() if err != nil { panic(err) } log.Printf("%d projects found", len(v.Projects)) }
-
[BREAKING] Removed support of variadic functions used to configure SDK client.