saHit

package
v0.0.0-...-b2602dc Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 4

README

saHit

介绍

简单三目运算

演示代码
saHit.Str(RunMode == "pro", "正式环境", "开发环境")
saHit.If(RunMode == "pro", user1, user2)).(UserModel)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float

func Float(ok bool, a float32, b float32) float32

func Float64

func Float64(ok bool, a float64, b float64) float64

func If

func If(ok bool, a interface{}, b interface{}) interface{}

func Int

func Int(ok bool, a int, b int) int

func Int64

func Int64(ok bool, a int64, b int64) int64

func OrInt

func OrInt(a, b int) int

func OrInt64

func OrInt64(a, b int64) int64

func OrStr

func OrStr(a, b string) string

func Str

func Str(ok bool, a string, b string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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