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
}

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
}

Change imprort name of gcfg to make project compile
Change imprort name of gcfg to make project compile
