io

package
v0.0.0-...-c7f26b2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCopy

func FileCopy(src, dst string) (int64, error)

func FileExists

func FileExists(path string) bool

exists returns whether the given file or directory exists

func FileNameNoExt

func FileNameNoExt(fileName string) string

func FileToString

func FileToString(filePath string) string

func StringToFile

func StringToFile(filePath, content string)

func Walk

func Walk(n ast.Node, walker Walker, idx int) error

Walk walks a AST tree by the depth first search algorithm.

func YamlFileToStruct

func YamlFileToStruct(filePath string, out interface{})

Types

type TreeNode

type TreeNode struct {
	Name     string
	Parent   *TreeNode
	Children []*TreeNode
}

func MdListToTreeNode

func MdListToTreeNode(filePath string) *TreeNode

type Walker

type Walker func(n ast.Node, entering bool, idx int) (ast.WalkStatus, error)

Jump to

Keyboard shortcuts

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