v0.3.0
Changed
-
The interface
Clientis removed and the output of theNewClientis the pointer to the struct now. It will facilitate stub of the SDK client. -
[BREAKING]
NewClientrequiresConfigto 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.