n26aas
provides n26api
services using service locator pattern.
Go >= 1.20
go get github.com/nhatthm/n26aas
Examples
package mypackage
import (
"github.com/google/uuid"
"github.com/nhatthm/n26aas"
"github.com/nhatthm/n26api"
)
func buildClient() (*n26api.Client, error) {
deviceID := uuid.New()
c := n26aas.NewClient(deviceID,
n26api.WithUsername("john.doe"),
n26api.WithPassword("123456"),
)
return c, nil
}
See https://github.com/nhatthm/n26aas/blob/master/provider.go
If this project help you reduce time to develop, you can give me a cup of coffee :)
or scan this