refactoring. remove global state, use new logging, config functions

This commit is contained in:
2018-06-17 16:15:58 +02:00
parent d091398f05
commit 75197310bf
24 changed files with 295 additions and 476 deletions

9
pixelapi/pixelapi.go Normal file
View File

@@ -0,0 +1,9 @@
package pixelapi
type PixelAPI struct {
apiEndpoint string
}
func New(apiEndpoint string) *PixelAPI {
return &PixelAPI{apiEndpoint}
}