helpers

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendInFile

func AppendInFile(fileName, upperBound, lowerBound, newLine string)

func Camelize

func Camelize(snaked string) (camelized string)

func FileContains

func FileContains(fileName, content string) bool

Types

type Command

type Command struct {
	Verbose bool
	Folder  string
}

func NewCommand

func NewCommand(verbose bool, folder string) *Command

func (*Command) Run

func (c *Command) Run(command string)

type Name

type Name struct {
	Name string
}

func NewName

func NewName(name string) *Name

func (*Name) Camel

func (n *Name) Camel() *Name

func (*Name) FirstLetter

func (n *Name) FirstLetter() *Name

func (*Name) Lower

func (n *Name) Lower() *Name

func (*Name) Plural

func (n *Name) Plural() *Name

func (*Name) ToString

func (n *Name) ToString() string

type Requirements added in v0.4.3

type Requirements struct {
	Packages []string
}

func NewRequirements added in v0.4.3

func NewRequirements(packages ...string) *Requirements

func (*Requirements) IsInstalled added in v0.4.3

func (r *Requirements) IsInstalled(command string) bool

func (*Requirements) MissingPackages added in v0.4.3

func (r *Requirements) MissingPackages() (missing []string)

Jump to

Keyboard shortcuts

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