Categorygithub.com/randolphcyg/cpe
modulepackage
1.0.6
Repository: https://github.com/randolphcyg/cpe.git
Documentation: pkg.go.dev

# README

cpe

Used to resolve the URL of CPE2.3 or CPE2.3 into a golang structure

Usage

go get "github.com/randolphcyg/cpe"
package main

import (
	"fmt"

	"github.com/randolphcyg/cpe"
)

func main() {
	cpeString := "cpe:/a:teamspeak:teamspeak2:2.0.23.19:tes /t:test2/"
	c, err := cpe.ParseCPE(cpeString)
	if err != nil {
		panic(err)
	}
	fmt.Println(c)

	fmt.Println("Part:", c.Part)
	fmt.Println("Vendor:", c.Vendor)
	fmt.Println("Product:", c.Product)
	fmt.Println("Version:", c.Version)
	fmt.Println("Update:", c.Update)
	fmt.Println("Edition:", c.Edition)
	fmt.Println("Language:", c.Language)
}

# Functions

No description provided by the author
No description provided by the author
ParseCPE* * Parses a CPE String into an object with the option of parsing CPE 2.2 URI * strings in lenient mode - allowing for CPE values that do not adhere to * the specification.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CPE represents a Common Platform Enumeration.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author