package
Version:
v0.0.5-alpha
Opens a new window with list of versions in this module.
Published: Apr 13, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package variables provides a generator for creating random variable names
nolint: gosec
type GenMock struct {
Index int
}
GenMock mocks the var name generator
Generate returns a mocked var name
Generator default generator implementation
Generate generates a random variable name of length 10
type IGen interface {
Generate() string
}
IGen variable name generator interface
NewGenerator creates a new generator
NewMock creates new mock implementation of var name generator
Source Files
¶
Click to show internal directories.
Click to hide internal directories.