config

package
v0.0.0-...-f7ec575 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassNames

func ClassNames(data Data) []string

Get the class names from the given config

Types

type Class

type Class struct {
	Name    string
	Teacher string
}

Configuration outline for a class

type Data

type Data struct {
	Name        string
	School_Year string
	Classes     []Class
	Commit      struct {
		Email string
	}
	Create struct {
		Clipboard     bool
		Editor        string
		EditorOptions string `toml:"editor_options"`
	}
}

Outline for the config

func Read

func Read() Data

Read from the configuration file

Jump to

Keyboard shortcuts

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