Documentation ¶
Overview ¶
nolint
nolint
nolint
nolint
nolint
Index ¶
- func ConstantsShouldBeDefinedInOneFileByPackage() error
- func HavePrefix(name, prefix string) bool
- func HaveSuffix(name, suffix string) bool
- func LowerCase(name, _ string) bool
- func MethodsOfTypeShouldBeDefinedInSameFile() error
- func PackageNameShouldBe(pattern NamePattern, args ...string) error
- func PackageNameShouldBeSameAsFolderName() error
- func SourceNameShouldBe(pattern NamePattern, args ...string) error
- func UpperCase(name, _ string) bool
- type File
- type Files
- type Function
- func (functions Function) Exclude(names ...string) Function
- func (functions Function) InPackage(paths ...string) Function
- func (functions Function) NameShould(pattern NamePattern) error
- func (functions Function) OfType(types ...string) Function
- func (functions Function) ShouldBePrivate() error
- func (functions Function) ShouldBePublic() error
- func (functions Function) WithParameter() Function
- func (functions Function) WithReturn() Function
- type Layer
- func (layer Layer) DepthShouldLessThan(depth int) error
- func (layer Layer) Exclude(paths ...string) Layer
- func (layer Layer) Files() Files
- func (layer Layer) FilesInPackages(paths ...string) Files
- func (layer Layer) Imports() []string
- func (layer Layer) Package(path string) Package
- func (layer Layer) Packages() []string
- func (layer Layer) ShouldBeOnlyReferredByLayers(layers ...Layer) error
- func (layer Layer) ShouldBeOnlyReferredByPackages(paths ...string) error
- func (layer Layer) ShouldNotReferLayers(layers ...Layer) error
- func (layer Layer) ShouldNotReferPackages(paths ...string) error
- func (layer Layer) ShouldOnlyReferLayers(layers ...Layer) error
- func (layer Layer) ShouldOnlyReferPackages(paths ...string) error
- func (layer Layer) Sub(name string, paths ...string) Layer
- func (layer Layer) Types() Types
- type NamePattern
- type Package
- type Type
- type Types
- func (types Types) EmbeddedWith(embeds ...string) Types
- func (types Types) Functions() []Function
- func (types Types) Implement(inters ...string) Types
- func (types Types) InPackage(paths ...string) Types
- func (types Types) NameShould(pattern NamePattern) error
- func (types Types) ShouldBeInPackages(pkgs ...string) error
- func (types Types) ShouldBePrivate() error
- func (functions Types) ShouldBePublic() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantsShouldBeDefinedInOneFileByPackage ¶ added in v0.1.2
func ConstantsShouldBeDefinedInOneFileByPackage() error
func HavePrefix ¶ added in v0.1.2
func HaveSuffix ¶ added in v0.1.2
func MethodsOfTypeShouldBeDefinedInSameFile ¶ added in v0.1.2
func MethodsOfTypeShouldBeDefinedInSameFile() error
func PackageNameShouldBe ¶ added in v0.1.2
func PackageNameShouldBe(pattern NamePattern, args ...string) error
func PackageNameShouldBeSameAsFolderName ¶ added in v0.1.2
func PackageNameShouldBeSameAsFolderName() error
func SourceNameShouldBe ¶ added in v0.1.2
func SourceNameShouldBe(pattern NamePattern, args ...string) error
Types ¶
type Files ¶
type Files []File
func (Files) NameShould ¶ added in v0.1.2
func (f Files) NameShould(pattern NamePattern) error
func (Files) ShouldNotRefer ¶ added in v0.1.2
type Function ¶ added in v0.1.2
func (Function) NameShould ¶ added in v0.1.2
func (functions Function) NameShould(pattern NamePattern) error
func (Function) ShouldBePrivate ¶ added in v0.1.2
func (Function) ShouldBePublic ¶ added in v0.1.2
func (Function) WithParameter ¶ added in v0.1.2
func (Function) WithReturn ¶ added in v0.1.2
type Layer ¶ added in v0.1.2
func (Layer) DepthShouldLessThan ¶ added in v0.1.2
func (Layer) FilesInPackages ¶ added in v0.1.2
func (Layer) ShouldBeOnlyReferredByLayers ¶ added in v0.1.2
func (Layer) ShouldBeOnlyReferredByPackages ¶ added in v0.1.2
func (Layer) ShouldNotReferLayers ¶ added in v0.1.2
func (Layer) ShouldNotReferPackages ¶ added in v0.1.2
func (Layer) ShouldOnlyReferLayers ¶ added in v0.1.2
func (Layer) ShouldOnlyReferPackages ¶ added in v0.1.2
type NamePattern ¶ added in v0.1.2
type Package ¶ added in v0.1.2
func (Package) ShouldBeOnlyReferredBy ¶ added in v0.1.2
func (Package) ShouldNotRefer ¶ added in v0.1.2
type Type ¶ added in v0.1.2
type Type struct {
// contains filtered or unexported fields
}
func TypeImplement ¶ added in v0.1.2
type Types ¶ added in v0.1.2
type Types []Type
func TypeEmbeddedWith ¶ added in v0.1.2
func (Types) EmbeddedWith ¶ added in v0.1.2
func (Types) NameShould ¶ added in v0.1.2
func (types Types) NameShould(pattern NamePattern) error
func (Types) ShouldBeInPackages ¶ added in v0.1.2
func (Types) ShouldBePrivate ¶ added in v0.1.2
func (Types) ShouldBePublic ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.