We are in package "main" now.
--- a/cmd/gondole-cli/config.go Wed Apr 12 13:18:55 2017 +0200
+++ b/cmd/gondole-cli/config.go Wed Apr 12 13:19:50 2017 +0200
@@ -3,7 +3,7 @@
// This file implements the configuration part for when you need the API
// key to modify things in the Mastodon configuration and manage measurements.
-package gondole
+package main
import (
"fmt"
@@ -31,18 +31,6 @@
)
)
-// Config holds our parameters
-type Server struct {
- ID string `json:"id"`
- Name string `json:"name"`
- BearerToken string `json:"bearer_token"`
- BaseURL string `json:"base_url"` // Allow for overriding APIEndpoint on registration
-}
-
-type Config struct {
- Default string
-}
-
func loadGlobal(file string) (c *Config, err error) {
log.Printf("file=%s", file)
// Check if there is any config file
--- a/cmd/gondole-cli/config_test.go Wed Apr 12 13:18:55 2017 +0200
+++ b/cmd/gondole-cli/config_test.go Wed Apr 12 13:19:50 2017 +0200
@@ -1,4 +1,4 @@
-package gondole
+package main
import (
"github.com/stretchr/testify/assert"