mobile struct location
@@ -40,14 +40,6 @@ var (
servicePrivateKeySigAlgo crypto.SignatureAlgorithm
)
-// ReadFile reads a file from the file system.
-func ReadFile(path string) string {
- contents, err := ioutil.ReadFile(path)
- Handle(err)
-
- return string(contents)
-}
-
type config struct {
Accounts struct {
Service struct {
@@ -59,6 +51,14 @@ type config struct {
}
}
+// ReadFile reads a file from the file system.
+func ReadFile(path string) string {
+ contents, err := ioutil.ReadFile(path)
+ Handle(err)
+
+ return string(contents)
+}
+
func readConfig() config {
f, err := os.Open(configPath)
if err != nil {
