Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TagInjector ¶
type TagInjector struct {
// contains filtered or unexported fields
}
TagInjector wraps a writer and adds a script tag to its content. It depends on the fact that dynamic page rendering makes a single Write call, so that it's guaranteed to find the marker within a single invocation argument. It doesn't parse HTML, so it could be spoofed but probably only intentionally.
Click to show internal directories.
Click to hide internal directories.