common

package
v0.0.0-...-53c6946 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArgs

func CheckArgs(arg ...string)

CheckArgs should be used to ensure the right command line arguments are passed before executing an example.

func CheckIfError

func CheckIfError(err error)

CheckIfError should be used to naively panics if an error is not nil.

func Error

func Error(format string, args ...interface{})

Error should be used to display an error

func Info

func Info(format string, args ...interface{})

Info should be used to describe the example commands that are about to run.

func Warning

func Warning(format string, args ...interface{})

Warning should be used to display a warning

Types

type DiffOptions

type DiffOptions struct {
	URL            string
	Dir            string
	Test           bool
	PrintPrivate   bool
	PrintUnchanged bool
	Pkg            string
	Output         string
}

DiffOptions 差异输出相关选项

type GraphOptions

type GraphOptions struct {
	Commit    string
	CallGraph *callgraph.Graph
	TempPath  string
}

GraphOptions 函数调用图相关选项

Jump to

Keyboard shortcuts

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