MCPcopy Index your code
hub / github.com/tdewolff/minify / String

Method String

html/hash.go:547–549  ·  view source on GitHub ↗

var HashMap = map[string]Hash{ "a": A, "abbr": Abbr, "about": About, "accept": Accept, "accept-charset": Accept_Charset, "accesskey": Accesskey, "acronym": Acronym, "action": Action, "address": Address, "allow": Allow, "allowfullscreen": Allowfullscreen, "amp-boilerplate": Amp_Boilerplat

()

Source from the content-addressed store, hash-verified

545
546// String returns the text associated with the hash.
547func (i Hash) String() string {
548 return string(i.Bytes())
549}
550
551// Bytes returns the text associated with the hash.
552func (i Hash) Bytes() []byte {

Callers 11

TestHTMLFunction · 0.45
TestHTMLCSSJSFunction · 0.45
TestHTMLKeepEndTagsFunction · 0.45
TestHTMLKeepWhitespaceFunction · 0.45
TestHTMLKeepQuotesFunction · 0.45
TestHTMLURLFunction · 0.45
TestHTMLGoTemplatesFunction · 0.45
TestHTMLPHPTemplatesFunction · 0.45
TestSpecialTagClosingFunction · 0.45

Calls 2

BytesMethod · 0.95
stringFunction · 0.50

Tested by 11

TestHTMLFunction · 0.36
TestHTMLCSSJSFunction · 0.36
TestHTMLKeepEndTagsFunction · 0.36
TestHTMLKeepWhitespaceFunction · 0.36
TestHTMLKeepQuotesFunction · 0.36
TestHTMLURLFunction · 0.36
TestHTMLGoTemplatesFunction · 0.36
TestHTMLPHPTemplatesFunction · 0.36
TestSpecialTagClosingFunction · 0.36