parser

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN_URL        string  = ""
	UNKNOWN_NAME       string  = ""
	UNKNOWN_OWNER      string  = ""
	UNKNOWN_SOURCE     string  = ""
	UNKNOWN_LICENSE    string  = ""
	UNKNOWN_LANGUAGES  string  = ""
	UNKNOWN_ECOSYSTEMS string  = ""
	UNKNOWN_COUNT      int     = 0
	UNKNOWN_FREQUENCY  float64 = 0

	DEFAULT_REMOTE_NAME string = "origin"
	DEFAULT_SOURCE      string = "github.com"

	LANGUAGE_THRESHOLD  int = 0
	ECOSYSTEM_THRESHOLD int = 0
)

Variables

View Source
var (
	UNKNOWN_TIME = time.Time{}

	BEGIN_TIME   = time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC)
	END_TIME     = time.Now()
	NOW          = time.Now()
	LAST_YEAR    = NOW.AddDate(-1, 0, 0)
	LAST_90_DAYS = NOW.AddDate(0, 0, -90)
)
View Source
var ECOSYSTEM_MAP = map[string]string{
	"package.json":      "npm",
	"package-lock.json": "npm",
	".npmrc":            "npm",
	"node_modules":      "npm",
	"setup.py":          "pypi",
	"Pipfile":           "pypi",
	"Pipfile.lock":      "pypi",
	"pyproject.toml":    "pypi",

	"Cargo.toml":      "cargo",
	"Cargo.lock":      "cargo",
	"pom.xml":         "maven",
	"build.gradle":    "gradle",
	"settings.gradle": "gradle",
	"go.sum":          "go",
	"go.work.sum":     "go",
	"go.mod":          "go",
	"go.work":         "go",
}
View Source
var LANGUAGE_EXTENSIONS = map[string]string{}/* 1135 elements not displayed */

* https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml

View Source
var LANGUAGE_FILENAMES = map[string]string{}/* 290 elements not displayed */
View Source
var LICENSE_FILENAMES = map[string]bool{
	"LICENSE":     true,
	"LICENSE.md":  true,
	"LICENSE.txt": true,
}

ToDo Try to cover more

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
* @Author: 7erry * @Date: 2024-09-29 14:41:35 * @LastEditTime: 2024-12-14 16:30:24 * @Description: Parse Input to make sure the provided URL is correct
* @Author: 7erry * @Date: 2024-09-29 14:41:35 * @LastEditTime: 2024-12-14 16:30:24 * @Description: Parse Input to make sure the provided URL is correct

Jump to

Keyboard shortcuts

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