util

package
v0.0.0-...-3aeb0ce Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASTPkgName

func ASTPkgName(targetPath string) (string, error)

use go ast pkg to get target path's pkg name

func Camel2Snake

func Camel2Snake(s string, c ...byte) string

trans camel string to snake string, XxYy to xx_yy , XxYY to xx_yy @param c, custom snake separator, only '-' or '_' allowed

func ScanFilesAndDirs

func ScanFilesAndDirs(dirPth string) (files []string, dirs []string, err error)

func ScanLevel1Dirs

func ScanLevel1Dirs(path string) ([]string, error)

func Snake2Camel

func Snake2Camel(s string, c ...byte) string

trans camel string to snake string, XxYy to xx_yy , XxYY to xx_yy @param c, custom snake separator, only '-' or '_' allowed

Types

This section is empty.

Directories

Path Synopsis
Package uniuri generates random strings good for use in URIs to identify unique objects.
Package uniuri generates random strings good for use in URIs to identify unique objects.

Jump to

Keyboard shortcuts

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