tools

package module
v0.0.0-...-5aa40c9 Latest Latest
Warning

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

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

README

tools

项目介绍

golang tools 之前在php常用的一些函数 go的实现 便于开发调试

函数列表
  1. Dump 来自 github.com/favframework/debug
  2. InArray
  3. PanicErr 这个是简化 if err!=nil panic(err)

Documentation

Overview

*

  • some useful functions from php
  • php is the best language of the world!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(v interface{})

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

func InArray

func InArray(v string, array []string) bool

*

  • is in array

func PanicErr

func PanicErr(v interface{})

*

  • short of if nil ,then panic

func Sdump

func Sdump(v interface{}) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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