Documentation
¶
Overview ¶
Package srcset `srcset` provides a parser for the HTML5 `srcset` attribute, based on the [WHATWG reference algorithm](https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute). TODO: This works, but I dislike the state manipulation. Use more go-like structures for reading and tokenization, like bufio.Scanner
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageSource ¶
ImageSource is a structure that contains an image definition.
Click to show internal directories.
Click to hide internal directories.