Source File
attr_string.go
Belonging Package
html/template
// Code generated by "stringer -type attr"; DO NOT EDIT.
package template
import
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var [1]struct{}
_ = [attrNone-0]
_ = [attrScript-1]
_ = [attrScriptType-2]
_ = [attrStyle-3]
_ = [attrURL-4]
_ = [attrSrcset-5]
}
const _attr_name = "attrNoneattrScriptattrScriptTypeattrStyleattrURLattrSrcset"
var _attr_index = [...]uint8{0, 8, 18, 32, 41, 48, 58}
func ( attr) () string {
if >= attr(len(_attr_index)-1) {
return "attr(" + strconv.FormatInt(int64(), 10) + ")"
}
return _attr_name[_attr_index[]:_attr_index[+1]]
}
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |