Documentation ¶
Index ¶
- func ActivityAPILink(activity arn.Activity) string
- func AllowEmbed(ctx *aero.Context, response string) string
- func CutLongDescription(description string) string
- func EmptyImage() string
- func FormatRating(rating float64) string
- func GetContainerClass(ctx *aero.Context) string
- func GetUser(ctx *aero.Context) *arn.User
- func HashString(item string) uint64
- func HashStringsNoOrder(items []string) uint64
- func Icon(name string) string
- func Intersection(a []string, b []string) []string
- func MaxAnime(animes []*arn.Anime, maxLength int) []*arn.Anime
- func RawIcon(name string) string
- func RenderQuoteText(text string) string
- func SVGSlicePath(from float64, to float64) string
- func SameUser(a *arn.User, b *arn.User) string
- func SearchClass(results interface{}) string
- func SmartRedirect(ctx *aero.Context, uri string) string
- func YenToUserCurrency(amount int, user *arn.User) string
- type APIField
- type AnimeWithRelatedAnime
- type CalendarDay
- type CalendarEntry
- type Comparison
- type HallOfFameEntry
- type JobInfo
- type MALComparison
- type UserList
- type UserStats
- type YearRegistrations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivityAPILink ¶
ActivityAPILink returns the API link for any activity.
func AllowEmbed ¶
AllowEmbed allows the page to be called by the browser extension.
func CutLongDescription ¶
CutLongDescription cuts a long description for use in OpenGraph tags.
func EmptyImage ¶
func EmptyImage() string
EmptyImage returns the smallest possible 1x1 pixel image encoded in Base64.
func FormatRating ¶
FormatRating formats the rating number.
func GetContainerClass ¶
GetContainerClass returns the class for the "container" element. In the browser extension it will get the "embedded" class.
func HashStringsNoOrder ¶
HashStringsNoOrder returns a hash of the string slice contents, ignoring order.
func Intersection ¶
Intersection returns common elements of a and b.
func RenderQuoteText ¶
RenderQuoteText renders the given quote text.
func SVGSlicePath ¶
SVGSlicePath creates a path string for a slice in a pie chart.
func SearchClass ¶
func SearchClass(results interface{}) string
SearchClass returns the class for a search section depending on the length of the search results.
func SmartRedirect ¶
SmartRedirect automatically adds the /_ prefix to the URI if required.
Types ¶
type AnimeWithRelatedAnime ¶
AnimeWithRelatedAnime ...
type CalendarDay ¶
type CalendarDay struct { Name string Class string Entries []*CalendarEntry }
CalendarDay is a calendar day.
type CalendarEntry ¶
type CalendarEntry struct { Anime *arn.Anime Episode *arn.AnimeEpisode Added bool }
CalendarEntry is a calendar entry.
type Comparison ¶
type Comparison struct { Anime *arn.Anime ItemA *arn.AnimeListItem ItemB *arn.AnimeListItem }
Comparison of an anime between 2 users.
type HallOfFameEntry ¶
HallOfFameEntry is an entry in the hall of fame.
type JobInfo ¶
JobInfo gives you information about a background job.
type MALComparison ¶
type MALComparison struct { Anime *arn.Anime MALAnime *mal.Anime Differences []animediff.Difference }
MALComparison encapsulates the difference between an ARN anime and a MAL anime.
type YearRegistrations ¶
YearRegistrations describes how many user registrations happened in a year.
Source Files ¶
- APIField.go
- ActivityLink.go
- AllowEmbed.go
- AnimeWithRelatedAnime.go
- Calendar.go
- Comparison.go
- CutLongDescription.go
- EmptyImage.go
- FilterCapitalLetters.go
- FormatRating.go
- GetContainerClass.go
- GetUser.go
- HallOfFameEntry.go
- HashStrings.go
- Icon.go
- Intersection.go
- JobInfo.go
- MALComparison.go
- MaxAnime.go
- PieChart.go
- RenderQuoteText.go
- SearchClass.go
- SmartRedirect.go
- UserList.go
- UserStats.go
- YearRegistrations.go
- YenToUserCurrency.go