unsafe

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 0 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoSilent

func DoSilent(interface{}, error)

DoSilent accepts a result of * fmt.Fprint* function family * io.Copy* and io.Read* function family * io.Writer interface and allows to ignore it.

unsafe.DoSilent(fmt.Fprintln(writer, "ignore the result"))

func Ignore

func Ignore(error)

Ignore accepts an error and allows to ignore it.

unsafe.Ignore(
	template.Must(template.New("html").Parse(content)).Execute(writer, data),
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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