strings

package
v0.0.0-...-576eb72 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package strings generates the String() method for enumeration types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(pkgName string, opts *Options) error

Types

type Options

type Options struct {
	Include     *regexp.Regexp
	Exclude     *regexp.Regexp
	TypeOptions map[string]*TypeOptions
}

type Transform

type Transform int
const (
	ToLower Transform = iota + 1
	ToUpper
)

type TypeOptions

type TypeOptions struct {
	Transform  Transform
	SliceBegin int
	SliceEnd   int
}

Jump to

Keyboard shortcuts

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