utils

package
v0.0.0-...-0f9c587 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotDirectory = errors.New("project path should be a directory")

Functions

func ListDirs

func ListDirs(dir string, recursive bool) []string

list all directories if parameter "dir" is not a directory, return empty list

func ListGoFiles

func ListGoFiles(dir string, includeTestFile bool) ([]string, error)

list all go files in given directory (not recursively) result should be relative path

func MustDir

func MustDir(path string) error

MustDir promise the given path is a directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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