type github.com/google/safehtml.Script
15 uses
github.com/google/safehtml (current package)
init.go#L26: func scriptRaw(s string) Script {
init.go#L27: return Script{s}
script.go#L38: type Script struct {
script.go#L50: func ScriptFromConstant(script stringConstant) Script {
script.go#L51: return Script{string(script)}
script.go#L67: func ScriptFromDataAndConstant(name stringConstant, data interface{}, script stringConstant) (Script, error) {
script.go#L69: return Script{}, fmt.Errorf("variable name %q is an invalid Javascript identifier", string(name))
script.go#L73: return Script{}, err
script.go#L75: return Script{fmt.Sprintf("var %s = %s;\n%s", name, json, string(script))}, nil
script.go#L88: func (s Script) String() string {
github.com/google/safehtml/legacyconversions
legacyconversions.go#L25: var script = raw.Script.(func(string) safehtml.Script)
legacyconversions.go#L40: func RiskilyAssumeScript(s string) safehtml.Script {
github.com/google/safehtml/template
sanitizers.go#L567: if safeTypeValue, ok := safehtmlutil.Indirect(args[0]).(safehtml.Script); ok {
github.com/google/safehtml/uncheckedconversions
uncheckedconversions.go#L30: var script = raw.Script.(func(string) safehtml.Script)
uncheckedconversions.go#L54: func ScriptFromStringKnownToSatisfyTypeContract(s string) safehtml.Script {
 |
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. |