utils

package
v0.0.0-...-d376067 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Utils for basic functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtIn

func ExtIn(file string, list []string) bool

If extention of `file` in list, return true, else return false.

func In

func In(name string, slice []string) bool

If `name` in `slice`, return true, else return false.

func PathWalk

func PathWalk(dir string, dirEx, fileEx []string) ([]string, error)

Return all files with absolute path in `dir`, but exclude files in `dirEx`, and exclude file in `fileEx`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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