Documentation ¶
Index ¶
Constants ¶
View Source
const ModFilename = "cue.mod/module.cue"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModFile ¶
type ModFile struct { // Module name Module string // Replace // version limit Replace map[PathMayWithVersion]ReplaceTarget // Require same as go root // require { module: version } // indirect require { module:: version } Require map[string]Require // contains filtered or unexported fields }
type ModVersion ¶
type PathMayWithVersion ¶
func ParsePathMayWithVersion ¶
func ParsePathMayWithVersion(v string) (*PathMayWithVersion, error)
func (PathMayWithVersion) IsLocalReplace ¶
func (r PathMayWithVersion) IsLocalReplace() bool
func (PathMayWithVersion) MarshalText ¶
func (r PathMayWithVersion) MarshalText() (text []byte, err error)
func (PathMayWithVersion) String ¶
func (r PathMayWithVersion) String() string
func (*PathMayWithVersion) UnmarshalText ¶
func (r *PathMayWithVersion) UnmarshalText(text []byte) error
type ReplaceTarget ¶
type ReplaceTarget struct { PathMayWithVersion Import string }
type Require ¶
type Require struct { ModVersion Indirect bool }
Click to show internal directories.
Click to hide internal directories.