configuration

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FILENAME = ".exercism.go"

Variables

This section is empty.

Functions

func Filename

func Filename(dir string) string

func HomeDir

func HomeDir() string

See: http://stackoverflow.com/questions/7922270/obtain-users-home-directory we can't cross compile using cgo and use user.Current()

func ReplaceTilde

func ReplaceTilde(oldPath string) string

func ToFile

func ToFile(path string, c Config) error

Types

type Config

type Config struct {
	GithubUsername    string `json:"githubUsername"`
	ApiKey            string `json:"apiKey"`
	ExercismDirectory string `json:"exercismDirectory"`
	Hostname          string `json:"hostname"`
}

func Demo

func Demo() (c Config, err error)

func FromFile

func FromFile(path string) (c Config, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL