module

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModule

type BaseModule []*Mod

func (*BaseModule) Add

func (m *BaseModule) Add(v *Mod)

func (*BaseModule) Get

func (m *BaseModule) Get(filename string) (*Mod, error)

func (*BaseModule) Load

func (m *BaseModule) Load() error

type GoModule

type GoModule struct {
	BaseModule
}

func NewGoModule

func NewGoModule() *GoModule

func (*GoModule) Get

func (m *GoModule) Get(filename string) (*Mod, error)

func (*GoModule) Load

func (m *GoModule) Load() error

type Mod

type Mod struct {
	Name string
	Dir  string
}

type Module

type Module interface {
	Add(*Mod)
	Load() error
	Get(string) (*Mod, error)
}

Jump to

Keyboard shortcuts

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