Documentation ¶
Index ¶
- type Picture
- type Source
- func (s *Source) Media() (bool, string)
- func (s *Source) SetMedia(value string) *Source
- func (s *Source) SetSizes(value ...string) *Source
- func (s *Source) SetSrcSet(value string) *Source
- func (s *Source) SetType(mimetype string) *Source
- func (s *Source) Sizes() (bool, string)
- func (s *Source) SrcSet() (bool, string)
- func (s *Source) Type() (bool, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Picture ¶
Picture is the html5 picture element See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture for reference
func New ¶
New creates a new instance of Picture image is the path to the image sources are the different image type sources
func (*Picture) AppendSources ¶
type Source ¶
Source is a html5 source element See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source for reference
func FromSourceElement ¶
FromSourceElement creates a new Source based on the given element
Click to show internal directories.
Click to hide internal directories.