Source File
content.go
Belonging Package
html/template
package template
import (
)
func ( ...interface{}) (string, contentType) {
if len() == 1 {
switch s := indirect([0]).(type) {
case string:
return , contentTypePlain
case CSS:
return string(), contentTypeCSS
case HTML:
return string(), contentTypeHTML
case HTMLAttr:
return string(), contentTypeHTMLAttr
case JS:
return string(), contentTypeJS
case JSStr:
return string(), contentTypeJSStr
case URL:
return string(), contentTypeURL
case Srcset:
return string(), contentTypeSrcset
}
}
:= 0
if == nil {
continue
}
[] = indirectToStringerOrError()
++
}
return fmt.Sprint([:]...), contentTypePlain
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |