pkgconfig

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

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-pkgconfig

Go package for wrangling pkg-config data

Documentation

Index

Constants

View Source
const (
	VersionEqual            = VersionCompare(0)
	VersionLessThan         = VersionCompare(-2)
	VersionLessThanEqual    = VersionCompare(-1)
	VersionGreaterThanEqual = VersionCompare(1)
	VersionGreaterThan      = VersionCompare(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Identifier     string
	VersionCompare VersionCompare
	Version        string
}

Dependency describes a dependency relationship between pkg-config files.

type DependencyList

type DependencyList struct {
	Key          string
	Dependencies []Dependency
}

type Package

type Package struct {
	Vars map[string]string

	Name          string
	Description   string
	Version       string
	URL           string
	Cflags        string
	CflagsPrivate string
	Libs          string
	LibsPrivate   string

	Requires         []Dependency
	RequiresPrivate  []Dependency
	RequiresInternal []Dependency
	Provides         []Dependency
}

Package contains the relevant information from a pkg-config file.

func Load

func Load(path string) (*Package, error)

Load loads a pkg-config data file from disk and returns a Package or an error.

func Parse

func Parse(data string) (*Package, error)

Parse parses a pkg-config data blob into a Package or returns an error.

type Property

type Property struct {
	Key   string
	Value string
}

type Variable

type Variable struct {
	Key   string
	Value string
}

type VersionCompare

type VersionCompare int

Jump to

Keyboard shortcuts

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