isDataURL checks if the specified string has the prefix of data URL.
(url string)
| 1143 | |
| 1144 | // isDataURL checks if the specified string has the prefix of data URL. |
| 1145 | func isDataURL(url string) bool { |
| 1146 | |
| 1147 | if strings.HasPrefix(url, dataURLprefix) { |
| 1148 | return true |
| 1149 | } |
| 1150 | return false |
| 1151 | } |
| 1152 | |
| 1153 | // loadDataURL decodes the specified data URI string (base64). |
| 1154 | func loadDataURL(url string) ([]byte, error) { |
no outgoing calls
no test coverage detected