Versions in this module Expand all Collapse all v0 v0.63.3 Jan 28, 2020 Changes in this version + func GetParam(r Resource, key string) interface + func GetParamToLower(r Resource, key string) interface + func IsExpired(d Dated) bool + func IsFuture(d Dated) bool + func IsZeroDates(d Dated) bool + func Param(r ResourceParamsProvider, fallback maps.Params, key interface{}) (interface{}, error) + type Cloner interface + Clone func() Resource + type ContentProvider interface + Content func() (interface{}, error) + type ContentResource interface + MediaType func() media.Type + type Dated interface + Date func() time.Time + ExpiryDate func() time.Time + Lastmod func() time.Time + PublishDate func() time.Time + type Dates struct + FDate time.Time + FExpiryDate time.Time + FLastmod time.Time + FPublishDate time.Time + func (d *Dates) UpdateDateAndLastmodIfAfter(in Dated) + func (p Dates) Date() time.Time + func (p Dates) ExpiryDate() time.Time + func (p Dates) Lastmod() time.Time + func (p Dates) PublishDate() time.Time + type Identifier interface + Key func() string + type Image interface + type ImageOps interface + Exif func() (*exif.Exif, error) + Fill func(spec string) (Image, error) + Filter func(filters ...interface{}) (Image, error) + Fit func(spec string) (Image, error) + Height func() int + Resize func(spec string) (Image, error) + Width func() int + type LanguageProvider interface + Language func() *langs.Language + func NewLanguageProvider(lang *langs.Language) LanguageProvider + type LengthProvider interface + Len func() int + type OpenReadSeekCloser func() (hugio.ReadSeekCloser, error) + type ReadSeekCloserProvider interface + ReadSeekCloser func() (hugio.ReadSeekCloser, error) + type ReadSeekCloserResource interface + MediaType func() media.Type + type Resource interface + type ResourceDataProvider interface + Data func() interface{} + type ResourceLinksProvider interface + Permalink func() string + RelPermalink func() string + type ResourceMetaProvider interface + Name func() string + Title func() string + type ResourceParamsProvider interface + Params func() maps.Params + type ResourceTypesProvider interface + MediaType func() media.Type + ResourceType func() string + func NewResourceTypesProvider(mediaType media.Type, resourceType string) ResourceTypesProvider + type Resources []Resource + func (r Resources) ByType(tp string) Resources + func (r Resources) GetMatch(pattern string) Resource + func (r Resources) Match(pattern string) Resources + func (r Resources) MergeByLanguage(r2 Resources) Resources + func (r Resources) MergeByLanguageInterface(in interface{}) (interface{}, error) + type ResourcesConverter interface + ToResources func() Resources + type ResourcesLanguageMerger interface + MergeByLanguage func(other Resources) Resources + MergeByLanguageInterface func(other interface{}) (interface{}, error) + type Source interface + Publish func() error + type TranslationKeyProvider interface + TranslationKey func() string