Documentation
¶
Index ¶
- func ConvertTimeFormat(timeToFormat string, parseTemplate string, formatTemplate string) (string, error)
- func GetAspectRatio(asset *contentful.AssetNoLocale) (float64, error)
- func GetAssetImage(asset *contentful.AssetNoLocale) *contentful.FileImage
- func IsCorrectImageSize(asset *contentful.AssetNoLocale) bool
- func IsLandscapeRatio(asset *contentful.AssetNoLocale) bool
- func IsPortraitRatio(asset *contentful.AssetNoLocale) bool
- func LoadInterfaceAsJSON(source interface{}, target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTimeFormat ¶
func GetAspectRatio ¶
func GetAspectRatio(asset *contentful.AssetNoLocale) (float64, error)
func GetAssetImage ¶
func GetAssetImage(asset *contentful.AssetNoLocale) *contentful.FileImage
func IsCorrectImageSize ¶ added in v0.0.3
func IsCorrectImageSize(asset *contentful.AssetNoLocale) bool
func IsLandscapeRatio ¶ added in v0.0.7
func IsLandscapeRatio(asset *contentful.AssetNoLocale) bool
func IsPortraitRatio ¶ added in v0.0.7
func IsPortraitRatio(asset *contentful.AssetNoLocale) bool
func LoadInterfaceAsJSON ¶ added in v0.0.7
func LoadInterfaceAsJSON(source interface{}, target interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.