Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseURL = "https://techbookfest.org"
View Source
var URLMap = map[string]string{
"latest": "https://raw.githubusercontent.com/mpppk/tbf/master/data/latest_circles.csv",
"tbf4": "https://raw.githubusercontent.com/mpppk/tbf/master/data/tbf4_circles.csv",
}
Functions ¶
func CircleDetailToHeaders ¶
func CircleDetailToHeaders(circleDetail *CircleDetail) (headers []string)
func CircleDetailToLine ¶
func CircleDetailToLine(headers []string, circleDetail *CircleDetail) ([]string, error)
Types ¶
type CircleDetail ¶
type CircleDetail struct { Circle `structs:",flatten" mapstructure:",squash"` ImageURL string WebURL string GenreFreeFormat string }
func LineToCircleDetail ¶
func LineToCircleDetail(headers, line []string) (*CircleDetail, error)
func NewCircleDetailFromMap ¶
func NewCircleDetailFromMap(m map[string]string) (*CircleDetail, error)
Click to show internal directories.
Click to hide internal directories.