common

package module
v0.0.0-...-cd449de Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Isnull

func Isnull(val, def interface{}) interface{}

*

  • 判断是否为空,val为nil时返回默认值
  • @param val
  • @param def
  • @return

func Ternary

func Ternary(bl bool, trueVal, falseVal interface{}) interface{}

*

  • 三元运算
  • @param bl
  • @param trueVal
  • @param falseVal
  • @return

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳