goaliaser

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliaser

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

Aliaser helps to convert document fields.

func New

func New() *Aliaser

New creates a new Aliaser for golang.

func (Aliaser) NameAlias

func (p Aliaser) NameAlias(in string) string

NameAlias converts a string to a valid Go capitalized alias. Example: hello world -> HelloWorld.

func (Aliaser) StringValue

func (p Aliaser) StringValue(in string) string

StringValue returns a quoted representation of a string. Example: Hello "World" -> "Hello \"World\"".

Jump to

Keyboard shortcuts

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