Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigToFile(dir string, c Config) (err error)
- func DemoDirectory() (dir string, err error)
- func HomeDir() string
- func IsTest(filename string) bool
- func Logout(dir string)
- func ReplaceTilde(oldPath string) string
- func SaveAssignment(dir string, a Assignment) (err error)
- func SubmitAssignment(host, apiKey, filePath string, code []byte) (r *submitResponse, err error)
- type Assignment
- type Config
Constants ¶
View Source
const FILENAME = ".exercism.go"
View Source
const VERSION = "1.0.1"
Variables ¶
View Source
var FetchEndpoints = map[string]string{
"current": "/api/v1/user/assignments/current",
"next": "/api/v1/user/assignments/next",
"demo": "/api/v1/assignments/demo",
}
Functions ¶
func ConfigToFile ¶
func DemoDirectory ¶
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 SaveAssignment ¶
func SaveAssignment(dir string, a Assignment) (err error)
func SubmitAssignment ¶
Types ¶
type Assignment ¶
type Assignment struct { Track string Slug string Readme string TestFile string `json:"test_file"` Tests string }
func FetchAssignments ¶
func FetchAssignments(host string, path string, apiKey string) (as []Assignment, err error)
Click to show internal directories.
Click to hide internal directories.