go attr_string 源码

2022-07-15 浏览 (892)

golang attr_string 代码

文件路径:/src/html/template/attr_string.go

// Code generated by "stringer -type attr"; DO NOT EDIT.

package template

import "strconv"

const _attr_name = "attrNoneattrScriptattrScriptTypeattrStyleattrURLattrSrcset"

var _attr_index = [...]uint8{0, 8, 18, 32, 41, 48, 58}

func (i attr) String() string {
	if i >= attr(len(_attr_index)-1) {
		return "attr(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _attr_name[_attr_index[i]:_attr_index[i+1]]
}

相关信息

go 源码目录

相关文章

go attr 源码

go clone_test 源码

go content 源码

go content_test 源码

go context 源码

go css 源码

go css_test 源码

go delim_string 源码

go doc 源码

go element_string 源码

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/9b6ae2063fef4adb8536bfc8de3c2805