equal

package
v0.0.0-...-3103a37 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package equal provides code generator for Equal like functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator generates the code according to a configuration.

func NewGenerator

func NewGenerator(pkgPath, typeName string, stdOut bool, input map[string]interface{}) *Generator

NewGenerator creates a Equal generator for specified type.

func (*Generator) Generate

func (g *Generator) Generate()

Generate generates the Equal like function. It writes the code to disk or on stdout.

type Type

type Type struct {
	// contains filtered or unexported fields
}

Type completely identifies a type.

Jump to

Keyboard shortcuts

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