mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTMLSnippet = fmt.Sprintf(`
	<html>
		<head>
		</head>
		<body>
			<div>
				%v
			</div>
			<div>
				%v
				%v
				%v
			</div>
		</body>
	</html>
`,
	Snippets["span"], Snippets["text input"], Snippets["text input"], Snippets["link"],
)
View Source
var Snippets = map[string]string{
	"span": `
		<span class="testClass1">
			Test text 1
		</span>
	`,
	"text input": `
		<input type="text"/>
	`,
	"link": `
		<a href="http://localhost">
			Test link 1
		</a>
	`,
}

Functions

This section is empty.

Types

type Buffer

type Buffer bytes.Buffer

func NewBuffer

func NewBuffer() Buffer

func (Buffer) Close

func (Buffer) Close() error

func (Buffer) Read

func (buffer Buffer) Read(p []byte) (n int, err error)

func (Buffer) Write

func (buffer Buffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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