filters

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentMatchesEmptyImportScaffold

func ContentMatchesEmptyImportScaffold(path string) (bool, error)

ContentMatchesEmptyImportScaffold matches files that can't be goimport'd due to ignite incompatibility.

func PathMatchesGoExtension

func PathMatchesGoExtension(path string) (bool, error)

PathMatchesGoExtension matches go source files.

func PathMatchesMockGo

func PathMatchesMockGo(path string) (bool, error)

PathMatchesMockGo matches generated mock go source files.

func PathMatchesProtobufGatewayGo

func PathMatchesProtobufGatewayGo(path string) (bool, error)

PathMatchesProtobufGatewayGo matches generated protobuf gateway go source files.

func PathMatchesProtobufGo

func PathMatchesProtobufGo(path string) (bool, error)

PathMatchesProtobufGo matches generated protobuf go source files.

func PathMatchesTestGo

func PathMatchesTestGo(path string) (bool, error)

PathMatchesTestGo matches go test files.

Types

type FilterFn

type FilterFn func(path string) (bool, error)

FilterFn is a function that returns true if the given path matches the filter's criteria.

Jump to

Keyboard shortcuts

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