Documentation ¶
Index ¶
- Variables
- func EnglishPriceHandler(p string) (price string)
- func FindPrice(arr []string) string
- func FindTime(s string, prefix string) string
- func GetDate(md []rune, sep rune) (month string, day string, err error)
- func GetJSON(url string, target interface{}) error
- func GetRelevantYear(month int) int
- func GetTimeFromString(s string) (hour string, min string, nextDay bool)
- func GetUniqueVenueIDs(a []LiveHouse) (b []string)
- func GetYearMonth(ym []rune, sep rune) (year string, month string, err error)
- func GetYearMonthDay(ymd []rune, sep1 rune, sep2 rune) (year string, month string, day string, err error)
- func InsertShortYearMonth(s string) string
- func InsertYearMonth(s string) string
- func Max(a, b int) int
- func Min(a, b int) int
- func ParseTime(d string, t string) (res time.Time, err error)
- func ProcessArtists(a []string) (artists []string)
- func SpacedPriceTimeFetcher(d string, s string) (price string, open time.Time, start time.Time, err error)
- type Area
- type Live
- type LiveHouse
- type PriceHandler
- type TimeHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var JapanTime = time.FixedZone("UTC+9", +9*60*60)
Functions ¶
func EnglishPriceHandler ¶
func GetRelevantYear ¶
GetRelevantYear gets the year for a given month. Some connectors have no way to get the year from DOM, so we make a basic set of assumptions:
1. If the month of the live is equal to or greater than the current month, assume the live is in the current year.
2. If the month of the live is less than the current month, assume the live is next year.
func GetUniqueVenueIDs ¶
func GetYearMonthDay ¶
func InsertShortYearMonth ¶
func InsertYearMonth ¶
func ProcessArtists ¶
Types ¶
type LiveHouse ¶
type LiveHouse struct { ID string `db:"id"` Url string `db:"url"` Description string `db:"description"` Area Area `db:"areas_id"` }
func GetUniqueVenues ¶
type PriceHandler ¶
Click to show internal directories.
Click to hide internal directories.