Documentation
¶
Index ¶
Constants ¶
View Source
const GITHUB_LICENSE_BASE_URL = "https://api.github.com/licenses"
View Source
const GOPM_CONFIG_FILE = "gopm.json"
Name of the gopm file used by the CLI
View Source
const LICENSE_FILE = "LICENSE.txt"
Variables ¶
This section is empty.
Functions ¶
func ExportConfig ¶
func ExportConfig(config GoPMConfig, configPath string) error
Export the configuration in a file
func ExportLicense ¶
Export the license in a file
func FetchLicense ¶
Types ¶
type GoPMConfig ¶
type GoPMConfig struct { Author string `json:"author"` // Author of the project Description string `json:"description"` // Description of the project Version string `json:"version"` // version of the project EntryPoint string `json:"entry"` // entry point of the project (e.g main.go) License string `json:"license"` // Licence of the project Scripts map[string]string `json:"scripts"` // Map of scripts that can be used ProjectName string `json:"name"` // Name of the project Git string `json:"git"` // Git repository name Dependencies map[string]string `json:"dependencies"` // Dependencies of the project }
Defines the content of the gopm.json. This config will be used to store the different information about the current go project
Click to show internal directories.
Click to hide internal directories.