utils

package
v0.0.0-...-e43e57e Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Format _Format
View Source
var Style _Style

Functions

func ExecFileAbsPath

func ExecFileAbsPath(path string) (abspath string, err error)

获取可执行文件的绝对路径

func RenderStatistics

func RenderStatistics(statistics []models.Statistics, c *cli.Context)

func RenderTask

func RenderTask(task *models.Task, c *cli.Context)

func RenderTaskConfig

func RenderTaskConfig(taskConfig *models.TaskConfig, c *cli.Context)

func RenderTaskList

func RenderTaskList(list []models.Task, c *cli.Context)

func RenderTaskState

func RenderTaskState(task *models.TaskState, c *cli.Context)

Types

type TaskSlice

type TaskSlice []models.Task

func (TaskSlice) Len

func (s TaskSlice) Len() int

func (TaskSlice) Less

func (s TaskSlice) Less(i, j int) bool

func (TaskSlice) Swap

func (s TaskSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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