pkgJson

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageJsonVersion

func GetPackageJsonVersion() string

func GetPackageJsonVersionGoStyle

func GetPackageJsonVersionGoStyle() string

func InitPkgJsonContent

func InitPkgJsonContent(content string)

func SetVersionPrefixGoStyle

func SetVersionPrefixGoStyle(prefix string)

Types

type PkgJson

type PkgJson struct {
	Name        string     `json:"name"`
	Version     string     `json:"version"`
	Description string     `json:"description"`
	Repository  Repository `json:"repository"`
	Keywords    []string   `json:"keywords"`
	Author      string     `json:"author"`
	License     string     `json:"license"`
	Homepage    string     `json:"homepage"`
}

type Repository

type Repository struct {
	Type string `json:"type"`
	Url  string `json:"url"`
}

Jump to

Keyboard shortcuts

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