gopan

package
v0.0.0-...-1802052 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToIndex

func AppendToIndex(index string, source *Source, author *Author, pkg *Package)

func CountIndex

func CountIndex(indexes map[string]map[string]*Source) (int, int, int, int)

func HasJSONXS

func HasJSONXS() bool

func HasParseLocalDistribution

func HasParseLocalDistribution() bool

func HasPerl

func HasPerl() (bool, string)

func LoadIndex

func LoadIndex(index string) map[string]*Source

func RemoveModule

func RemoveModule(index string, source *Source, author *Author, pkg *Package)

func SaveIndex

func SaveIndex(index string, indexes map[string]*Source)

func VersionFromString

func VersionFromString(version string) float64

An attempt at turning random version numbers into comparable floats!

Types

type AppendSliceValue

type AppendSliceValue []string

AppendSliceValue implements the flag.Value interface and allows multiple calls to the same variable to append a list.

func (*AppendSliceValue) Set

func (s *AppendSliceValue) Set(value string) error

func (*AppendSliceValue) String

func (s *AppendSliceValue) String() string

type Author

type Author struct {
	Source   *Source
	Name     string
	Packages map[string]*Package
	URL      string
}

func (*Author) String

func (a *Author) String() string

type Package

type Package struct {
	Author   *Author
	Name     string
	URL      string
	Provides map[string]*PerlPackage
	// contains filtered or unexported fields
}

func (*Package) AuthorURL

func (p *Package) AuthorURL() string

func (*Package) String

func (p *Package) String() string

func (*Package) Version

func (p *Package) Version() float64

func (*Package) VirtualURL

func (p *Package) VirtualURL() string

type PerlDeps

type PerlDeps struct {
	HasPerl                   bool
	PerlVersion               string
	HasParseLocalDistribution bool
	HasJSONXS                 bool
	Ok                        bool
}

func TestPerlDeps

func TestPerlDeps() *PerlDeps

func (*PerlDeps) Dump

func (pd *PerlDeps) Dump()

type PerlPackage

type PerlPackage struct {
	Package *Package
	Name    string
	Version string
	File    string
}

type Source

type Source struct {
	Name    string
	Authors map[string]*Author
	URL     string
}

func BackPANSource

func BackPANSource() *Source

func CPANSource

func CPANSource() *Source

func (*Source) String

func (s *Source) String() string

Jump to

Keyboard shortcuts

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