Documentation ¶
Index ¶
Constants ¶
View Source
const KeyImageError = "embedded:error.png"
View Source
const KeyImageRed = "embedded:red.png"
View Source
const KeyImageTransparent = "embedded:transparent.png"
View Source
const KeyMvtBox = "embedded:box.mvt"
View Source
const KeyMvtEmpty = "embedded:empty.mvt"
View Source
const KeyPrefixColor = "color:"
Variables ¶
This section is empty.
Functions ¶
func GetStaticImage ¶
Returns the contents of an image. This can be an embedded image if path starts with "embedded:". The path will be treated as a standard filepath otherwise. The contents of the image will be permanently cached in memory, this should be only used for images that will be reused a lot such as error responses. Errors will also be cached but 1% of the time it will be retried.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.