utils

package
v0.0.0-...-542f8df Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package utils @Author Bing @Date 2023/10/27 15:44:00 @Desc

Package utils @Author Bing @Date 2023/10/25 16:24:00 @Desc

Package utils @Author Bing @Date 2023/10/25 11:47:00 @Desc

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Functions

func ExcludeEmpty

func ExcludeEmpty(li []string) []string

func Log

func Log(fmt string, v ...interface{})

func StringJoin

func StringJoin(s ...string) string

Types

type H

type H map[string]interface{}

func Failed

func Failed() H

func FailedWithMsg

func FailedWithMsg(code int, msg string) H

func Ok

func Ok() H

func OkWithDetail

func OkWithDetail(code int, msg string, data H) H

func OkWithMsg

func OkWithMsg(code int, msg string) H

type Obj

type Obj struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
	Msg    string `json:"msg"`
	Data   H      `json:"data"`
}

Jump to

Keyboard shortcuts

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