// Package graphic provides utility functions for finding and building images or // videos on the filesystem. package graphic // import "twos.dev/winter/graphic" import ( "errors" "fmt" "os" "path/filepath" "strings" ) var ( ImageExts = map[string]struct{}{ "png": {}, "jpg": {}, "jpeg": {}, "svg": {}, } VideoExts = map[string]struct{}{ "mov": {}, "mp4": {}, } ) // SRC is a string that will be rendered into a graphic's src attribute (such as // in an or