utils

package
v0.0.0-...-d5719a6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	IsFile   bool        `json:"leaf"`
	FullPath string      `json:"path"`
	Label    string      `json:"label"`
	Subs     []*FileInfo `json:"children"`
}

func AddFileInfo

func AddFileInfo(fileInfo *FileInfo, fileList []*FileInfo) []*FileInfo

func FileList

func FileList(dir string, useParent bool) []*FileInfo

get file list from dir

Jump to

Keyboard shortcuts

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