Documentation ¶
Index ¶
- func GetPackageJsonDescription() string
- func GetPackageJsonHomepage() string
- func GetPackageJsonName() string
- func GetPackageJsonVersion() string
- func GetPackageJsonVersionGoStyle(onlyKeepVersion bool) string
- func InitPkgJsonContent(content string)
- func SetVersionPrefixGoStyle(prefix string)
- type Author
- type Bugs
- type Directories
- type PkgJson
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackageJsonDescription ¶
func GetPackageJsonDescription() string
func GetPackageJsonHomepage ¶
func GetPackageJsonHomepage() string
func GetPackageJsonName ¶
func GetPackageJsonName() string
func GetPackageJsonVersion ¶
func GetPackageJsonVersion() string
func InitPkgJsonContent ¶
func InitPkgJsonContent(content string)
InitPkgJsonContent
initialization will change the global variable pkgJsonContent
func SetVersionPrefixGoStyle ¶
func SetVersionPrefixGoStyle(prefix string)
Types ¶
type Author ¶
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 ¶
func GetPackageJsonAuthor() Author
type Directories ¶
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
Click to show internal directories.
Click to hide internal directories.