common

package
v0.0.0-...-cc63be1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package common ...

Description : common ...

Author : go_developer@163.com<白茶清欢>

Date : 2023-03-10 18:28

Package common ...

Description : common ...

Author : go_developer@163.com<白茶清欢>

Date : 2023-03-10 15:19

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckParam

func CheckParam(inputParam easymap.EasyMap, rule [][]*baseDefine.Param) (map[string]interface{}, string, exception.IException)

CheckParam 检测参数,返回向下转发的参数,或者出现异常,返回error

Author : go_developer@163.com<白茶清欢>

Date : 9:39 下午 2021/9/15

func ConvertToSlice

func ConvertToSlice(data interface{}) ([]interface{}, error)

ConvertToSlice 任意类型转为slice

Author : go_developer@163.com<白茶清欢>

Date : 11:03 下午 2021/9/15

func StringToAny

func StringToAny(val interface{}, targetType string) (interface{}, exception.IException)

StringToAny 字符串转为任意类型数据

Author : go_developer@163.com<白茶清欢>

Date : 15:10 2023/3/10

func ToString

func ToString(data interface{}) string

ToString 数据转为字符串

Author : go_developer@163.com<白茶清欢>

Date : 11:08 下午 2021/9/15

Types

This section is empty.

Jump to

Keyboard shortcuts

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