refactoring. remove global state, use new logging, config functions
This commit is contained in:
9
pixelapi/pixelapi.go
Normal file
9
pixelapi/pixelapi.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package pixelapi
|
||||
|
||||
type PixelAPI struct {
|
||||
apiEndpoint string
|
||||
}
|
||||
|
||||
func New(apiEndpoint string) *PixelAPI {
|
||||
return &PixelAPI{apiEndpoint}
|
||||
}
|
Reference in New Issue
Block a user