toerror

package
Version: v0.0.0-...-49e55dd Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package toerror contains the implementation of the toerror plugin, which generates the deriveToError function.

The deriveToError function transforms return type of a function from (B..., bool) into (B..., error).

deriveToError(e error, f func(A...) (B..., bool)) func(A...) (B..., error)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New is a constructor for the toerror code generator. This generator should be reconstructed for each package.

func NewPlugin

func NewPlugin() derive.Plugin

NewPlugin creates a new toerror plugin. This function returns the plugin name, default prefix and a constructor for the toerror code generator.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto