config

package
v0.0.0-...-3119e3f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flashcards []Flashcard `json:"flashcards"`
}

Config is the definition of a Config struct

func NewConfig

func NewConfig(filepath *string) (cfg *Config, err error)

NewConfig loads the config file and returns a Config struct

type Flashcard

type Flashcard struct {
	Name       string `json:"name"`
	Definition string `json:"definition"`
}

Flashard is the definition of a flashcard

Jump to

Keyboard shortcuts

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