gomodstats

package module
v0.0.0-...-e76006b Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 1 Imported by: 0

README

gomodstats

A repo for gomodstats

License Version Godoc

Info to keep:
  • module / package name
  • proxied or not
  • vcs url
  • folder / file layout
  • imports
  • function names (?)
interesting stats
  • go mod vs not
  • version distribution
  • directory structure
  • common file names
  • vcs hosts

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// canonical name of module
	Name string
	// odule version
	Version string
	// time of index
	Indexed string

	// is the module proxied
	Proxied bool

	// url to download from
	RepoRoot *vcs.RepoRoot

	// list of packages
	Pkgs []Package
	// list of module imports
	Folders []string
}

type Package

type Package struct {
	// import path of package (dir name)
	ImportPath string
	// actual name of package
	Name string
	// packages imported by this package
	PkgImports []string
	// filenames in package
	Files []string
	// list of exported functions
	ExportedFuncs []string
	// list of unexported functions
	PrivateFuncs []string
	// lines of code
	CodeLines int64
}

type Store

type Store struct {
	// map of module names to module versions
	Mods map[string][]Module
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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