mod

package
v0.155.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyslModules = os.Getenv("SYSL_MODULES") != "off"

Functions

func ExtractVersion added in v0.98.0

func ExtractVersion(path string) (newpath, ver string)

func SyslModInit added in v0.6.3

func SyslModInit(modName string) error

Assumes that a go module and a sysl module is mutually exclusive. This function makes the assumption that the CWD is not a go module since we hijack this command and use go.mod and possibly go.sum to determine whether the current folder/project is a sysl module

Types

type Fs

type Fs struct {
	afero.Fs
	// contains filtered or unexported fields
}

func NewFs

func NewFs(fs afero.Fs, root string) *Fs

func (*Fs) Name

func (fs *Fs) Name() string

func (*Fs) Open

func (fs *Fs) Open(name string) (afero.File, error)

func (*Fs) OpenFile

func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

type Module

type Module struct {
	Name    string
	Dir     string
	Version string
}

func Find

func Find(name string, ver string) (*Module, error)

type Modules

type Modules []*Module

func (*Modules) Add

func (m *Modules) Add(v *Module)

func (*Modules) GetByFilename

func (m *Modules) GetByFilename(filename, ver string) *Module

func (*Modules) Len added in v0.123.0

func (m *Modules) Len() int

func (*Modules) Load

func (m *Modules) Load() error

Jump to

Keyboard shortcuts

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