database

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPackage

func AddPackage(pack Package) error

func RemovePackage

func RemovePackage(entry Package) error

Types

type GoxDatabase

type GoxDatabase struct {
	Packages map[string]Package `json:"packages"`
}

func ParseDatabase

func ParseDatabase() *GoxDatabase

type Package

type Package struct {
	Name      string    `json:"name"`
	Checksum  string    `json:"checkSum"`
	Version   string    `json:"version"`
	Path      string    `json:"path"`
	Installed time.Time `json:"installed"`
	URL       string    `json:"url"`
}

Jump to

Keyboard shortcuts

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