Documentation ¶
Index ¶
Constants ¶
View Source
const ( TopLevel = "week" Regular = "task" )
Variables ¶
This section is empty.
Functions ¶
func GetMOOCSlug ¶
func GetSlugFromURLPath ¶
GetSlugFromURLPath retrieves a course slug from given path, as "defined" in the general form [scheme:][//[userinfo@]host][/]path[?query][#fragment] See: https://golang.org/pkg/net/url/#URL
Types ¶
type CourseSyllabus ¶
type CourseSyllabus struct {
Weeks []Week `json:"weeks"`
}
func (CourseSyllabus) Validate ¶
func (cs CourseSyllabus) Validate() error
type ExportOptions ¶
type Exporter ¶
type Exporter interface {
Export(cs CourseSyllabus) ([]byte, error)
}
type Importer ¶
type Importer interface {
Import() (CourseSyllabus, error)
}
type JsonExporter ¶
type JsonExporter struct { }
func (*JsonExporter) Export ¶
func (e *JsonExporter) Export(cs CourseSyllabus) ([]byte, error)
type TodoistExporter ¶
type TodoistExporter struct {
Opt ExportOptions
}
func (*TodoistExporter) Export ¶
func (e *TodoistExporter) Export(cs CourseSyllabus) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.