nuspec

package module
v0.0.0-...-3cb0bfe Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Package struct {
		Xmlns string `xml:"xmlns"`
	} `xml:"package"`
	Metadata struct {
		ID                       string `xml:"id"`
		Version                  string `xml:"version"`
		Title                    string `xml:"title"`
		Authors                  string `xml:"authors"`
		Owners                   string `xml:"owners"`
		ProjectURL               string `xml:"projectUrl"`
		LicenseURL               string `xml:"licenseUrl"`
		IconURL                  string `xml:"iconUrl"`
		RequireLicenseAcceptance string `xml:"requireLicenseAcceptance"`
		Description              string `xml:"description"`
		ReleaseNotes             string `xml:"releaseNotes"`
		Copyright                string `xml:"copyright"`
		Summary                  string `xml:"summary"`
		Language                 string `xml:"language"`
		Tags                     string `xml:"tags"`
	} `xml:"metadata"`
}

File Represents a .nuspec XML file found in the root of the .nupck files

func FromBytes

func FromBytes(b []byte) (*File, error)

FromBytes pulls in a nuspec file drom the drive

func FromFile

func FromFile(fn string) (*File, error)

FromFile pulls in a nuspec file drom the drive

func New

func New() *File

New returns a populated skeleton for a Nuget Packages request (/Packages)

func (*File) ToBytes

func (nsf *File) ToBytes() ([]byte, error)

ToBytes produces the nuspec in XML format

Jump to

Keyboard shortcuts

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