utils

package
v0.0.0-...-bc2ff70 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright © 2020 aggronmagi <czy463@163.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright © 2020 aggronmagi <czy463@163.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 aggronmagi <czy463@163.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var Flag = &walleCommonFlag{
	Debug:      false,
	ShowDetail: false,
}

Flag 导出全局通用标记

Functions

func Debug

func Debug() bool

Debug 是否打印调试信息

func Debugln

func Debugln(v ...interface{})

func Dump

func Dump(v interface{})

Dump print to standard out the value that is passed as the argument with indentation. Pointers are dereferenced.

func MergeNotSameSlice

func MergeNotSameSlice(l1, l2 []string) (res []string)

func PanicIf

func PanicIf(err interface{}, tips ...interface{})

PanicIf 如果错误panic

func RangeFiles

func RangeFiles(dirPth string, rf func(file string) error) (err error)

RangeFiles 遍历获取指定目录下的所有文件(递归深层目录)

func RangeFilesWithExt

func RangeFilesWithExt(dir, ext string, rf func(string) error) error

RangeFilesWithExt 遍历指定目录下所有 有指定后缀名的文件

func Sdump

func Sdump(v interface{}, name string) string

Sdump return the value that is passed as the argument with indentation. Pointers are dereferenced.

func ShowDetail

func ShowDetail() bool

func Title

func Title(in string) (out string)

func Trackln

func Trackln(v ...interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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