Help us shape the future of Go! Take the 2026 Go Developer Survey

uncheckedconversions

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2022 License: BSD-3-Clause Imports: 2 Imported by: 9

Documentation

Overview

Package uncheckedconversions provides functions to create values of safehtml/template types from plain strings. Use of these functions could potentially result in safehtml/template type values that violate their type contract, and hence result in security vulnerabilties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrustedSourceFromStringKnownToSatisfyTypeContract

func TrustedSourceFromStringKnownToSatisfyTypeContract(s string) template.TrustedSource

TrustedSourceFromStringKnownToSatisfyTypeContract converts a string into a TrustedSource.

func TrustedTemplateFromStringKnownToSatisfyTypeContract

func TrustedTemplateFromStringKnownToSatisfyTypeContract(s string) template.TrustedTemplate

TrustedTemplateFromStringKnownToSatisfyTypeContract converts a string into a TrustedTemplate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL