We are in package "main" now.
authorOllivier Robert <roberto@keltia.net>
Wed, 12 Apr 2017 13:19:50 +0200
changeset 73 d601c957d789
parent 72 e2eabbf63c82
child 74 ba06092b91a6
We are in package "main" now.
cmd/gondole-cli/config.go
cmd/gondole-cli/config_test.go
--- 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"