utils

package
v0.0.0-...-58e73a0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VERSION_CODE = 1
	VERSION_NAME = "0.1"

	BUILD_DIR = ".build/"
)

Variables

This section is empty.

Functions

func CheckEnv

func CheckEnv()

func CheckError

func CheckError(err error)

func CreateDir

func CreateDir(name string)

func ExecCommand

func ExecCommand(commandName string, args ...string)

func ExecCommandAndReturn

func ExecCommandAndReturn(commandName string, args ...string) string

func FileExists

func FileExists(filepath string) bool

func FirstChildNode

func FirstChildNode(node *goquery.Selection) *goquery.Selection

func GetTag

func GetTag(parent *goquery.Selection, name string) (*goquery.Selection, bool)

func GetTagOrFatal

func GetTagOrFatal(parent *goquery.Selection, name string) *goquery.Selection

func GetTaskTag

func GetTaskTag(dom *goquery.Document) *goquery.Selection

func NextNode

func NextNode(node *goquery.Selection) *goquery.Selection

func NodeName

func NodeName(node *goquery.Selection) string

func ReadFile

func ReadFile(filepath string) *os.File

func ReadFileAsDom

func ReadFileAsDom(filepath string) *goquery.Document

Types

This section is empty.

Jump to

Keyboard shortcuts

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