utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(source, target interface{})

DeepCopy source and target must have the same structure, and target must be a pointer.

func If

func If(b bool, t, f interface{}) interface{}

If functions similar to ternary operators,if b is ture return t, else return f

func Json

func Json(i interface{}) string

Json returns a json string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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