scorer

package
v0.0.0-...-c9daeef Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FontReset  = "\033[0m"
	FontRed    = "\033[31m"
	FontGreen  = "\033[32m"
	FontBlue   = "\033[34m"
	FontPurple = "\033[35m"
	FontCyan   = "\033[36m"
	FontGray   = "\033[37m"
	FontBold   = "\033[1m"
)

TODO this is evil when used as input for other CLI tools. Use proper library for colored output.

Functions

func GetFileContent

func GetFileContent(filePath string) ([]byte, error)

func GetPackage

func GetPackage(pkg *config.RelevantPackage, modFile *modfile.File) (*api.Package, error)

Types

type Service

type Service struct {
	Logger             *zap.Logger
	PreferredGoVersion semver.Version
	GoModFileList      []string
	RelevantPackages   []config.RelevantPackage
}

func (*Service) PerformGoModAnalysis

func (s *Service) PerformGoModAnalysis(verbose bool) error

func (*Service) PrintPackageAnalysis

func (s *Service) PrintPackageAnalysis(modFile *modfile.File, pkgs []*api.Package) (string, uint64, error)

Jump to

Keyboard shortcuts

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