pkgJson

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageJsonDescription added in v1.21.0

func GetPackageJsonDescription() string

func GetPackageJsonHomepage added in v1.21.0

func GetPackageJsonHomepage() string

func GetPackageJsonName added in v1.21.0

func GetPackageJsonName() string

func GetPackageJsonVersion

func GetPackageJsonVersion() string

func GetPackageJsonVersionGoStyle

func GetPackageJsonVersionGoStyle() string

func GetPackageJsonVersionGoStyleKeepSelect added in v1.21.0

func GetPackageJsonVersionGoStyleKeepSelect(onlyKeepVersion bool) string

func InitPkgJsonContent

func InitPkgJsonContent(content string)

InitPkgJsonContent

initialization will change the global variable pkgJsonContent

func SetVersionPrefixGoStyle

func SetVersionPrefixGoStyle(prefix string)

Types

type Author added in v1.21.0

type Author struct {

	// Name
	//
	Name string `json:"name,omitempty"`

	// Email
	//
	Email string `json:"email,omitempty"`

	// Url
	//
	Url string `json:"url,omitempty"`
}

Author struct

func GetPackageJsonAuthor added in v1.21.0

func GetPackageJsonAuthor() Author

type Bugs added in v1.21.0

type Bugs struct {

	// Url
	//
	Url string `json:"url,omitempty"`
}

Bugs struct

type Directories added in v1.21.0

type Directories struct {

	// Doc
	//
	Doc string `json:"doc,omitempty"`
}

Directories struct

type PkgJson

type PkgJson struct {
	// Name
	//
	Name string `json:"name"`

	// Version
	//
	Version string `json:"version"`

	// Author
	//
	Author Author `json:"author"`

	// Description
	//
	Description string `json:"description,omitempty"`

	// Directories
	//
	Directories Directories `json:"directories,omitempty"`

	// Repository
	//
	Repository Repository `json:"repository,omitempty"`

	// Keywords
	//
	Keywords []string `json:"keywords,omitempty"`

	// License
	//
	License string `json:"license,omitempty"`

	// Bugs
	//
	Bugs Bugs `json:"bugs,omitempty"`

	// Homepage
	//
	Homepage string `json:"homepage,omitempty"`
}

PkgJson

struct of package.json

type Repository

type Repository struct {

	// Type
	//
	Type string `json:"type,omitempty"`

	// Url
	//
	Url string `json:"url,omitempty"`
}

Repository struct

Jump to

Keyboard shortcuts

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