dep

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dep 依赖关系管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dep

func Dep(info *log.Logger, items []*Item) error

Dep 初始化依赖项

func IsDep added in v0.43.0

func IsDep(items []*Item, m1, m2 string) bool

IsDep m1 是否依赖 m2

Types

type Executor added in v0.43.0

type Executor struct {
	Title string
	F     func() error
}

Executor 依赖项实际执行的函数对象

type Item added in v0.43.0

type Item struct {
	// contains filtered or unexported fields
}

Item 依赖项

func NewItem added in v0.43.0

func NewItem(id string, deps []string, executors []Executor) *Item

func Reverse added in v0.43.0

func Reverse(items []*Item) []*Item

Reverse 反转依赖关系

Jump to

Keyboard shortcuts

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