models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Help       bool
	Unrendered bool
	Exclude    string
	Lte        int
	Gte        int
	Out        string
	Dir        string

	// internal fields - not set by user
	ExcludeRegExp *regexp.Regexp
	ModuleName    string
}

func (*Args) Validate

func (a *Args) Validate() error

type Counter

type Counter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter() *Counter

func (*Counter) Add

func (c *Counter) Add(pkg string)

func (*Counter) Counts

func (c *Counter) Counts() map[string]*atomic.Uint32

type PackageCount

type PackageCount struct {
	Package string
	Count   int
}

PackageCount contains a package and its count.

type Result

type Result struct {
	Internal []PackageCount
	External []PackageCount
}

Result contains the internal and external package counts.

func (Result) Rendered

func (r Result) Rendered() ([]byte, error)

Rendered generates markdown output with the internal and external package counts.

func (Result) Unrendered

func (r Result) Unrendered() ([]byte, error)

Unrendered generates markdown output with the internal and external package counts.

Jump to

Keyboard shortcuts

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