util

package
v0.0.0-...-7835fc4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGoKeywordSafeString

func MakeGoKeywordSafeString(target string) string

func SliceDeleteEmptyString

func SliceDeleteEmptyString(s []string) (arr []string)

Types

type GeneratorBase

type GeneratorBase struct {
	*bytes.Buffer
	// contains filtered or unexported fields
}

func NewGeneratorBase

func NewGeneratorBase(spaceIndent int) *GeneratorBase

func (*GeneratorBase) FormattedOutputOrDie

func (b *GeneratorBase) FormattedOutputOrDie() string

func (*GeneratorBase) P

func (b *GeneratorBase) P(contents ...string)

func (*GeneratorBase) Reset

func (b *GeneratorBase) Reset() []byte

func (*GeneratorBase) S

func (b *GeneratorBase) S()

func (*GeneratorBase) W

func (b *GeneratorBase) W(contents ...string)

Jump to

Keyboard shortcuts

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