Documentation ¶
Index ¶
Constants ¶
View Source
const ModFilename = "mod.jsonnet"
Variables ¶
This section is empty.
Functions ¶
func WriteModFile ¶
Types ¶
type ModFile ¶
type ModFile struct { // Module name Module string // JPath JSONNET_PATH // when not empty, symlinks will be created for JSONNET_PATH JPath string // Replace // version limit Replace map[PathIdentity]PathIdentity // Require same as go root // require { module: version } // indirect require { module:: version } Require map[string]Require // Comments Comments map[string][]string }
type ModVersion ¶
func (ModVersion) String ¶
func (mv ModVersion) String() string
type PathIdentity ¶
func ParsePathIdentity ¶
func ParsePathIdentity(v string) (*PathIdentity, error)
func (PathIdentity) IsLocalReplace ¶
func (r PathIdentity) IsLocalReplace() bool
func (PathIdentity) MarshalText ¶
func (r PathIdentity) MarshalText() (text []byte, err error)
func (PathIdentity) String ¶
func (r PathIdentity) String() string
func (*PathIdentity) UnmarshalText ¶
func (r *PathIdentity) UnmarshalText(text []byte) error
type Require ¶
type Require struct { ModVersion Indirect bool `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.