package main

import "gopkg.in/gcfg.v1"

// Config is config
type Config struct {
	Telegram struct {
		Token    string
		Username string
	}
}

func getConfig() (Config, error) {
	var cfg Config
	err := gcfg.ReadFileInto(&cfg, "/tmp/config.cfg")
	return cfg, err
}

package main

import "code.google.com/p/gcfg"

// Config is config
type Config struct {
	Telegram struct {
		Token    string
		Username string
	}
}

func getConfig() (Config, error) {
	var cfg Config
	err := gcfg.ReadFileInto(&cfg, "./config.cfg")
	return cfg, err
}

--- 
+++ 
@@ -1,6 +1,6 @@
 package main
 
-import "code.google.com/p/gcfg"
+import "gopkg.in/gcfg.v1"
 
 // Config is config
 type Config struct {
@@ -12,6 +12,6 @@
 
 func getConfig() (Config, error) {
 	var cfg Config
-	err := gcfg.ReadFileInto(&cfg, "./config.cfg")
+	err := gcfg.ReadFileInto(&cfg, "/tmp/config.cfg")
 	return cfg, err
 }
Change imprort name of gcfg to make project compile
