langutil

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Loop

func Loop(n int, f func())

执行N次循环

func LoopI added in v1.7.1

func LoopI(n int, f func(i int))

执行N次循环,接收index参数

func Ternary added in v1.7.5

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

三目运算

func TernaryDo added in v1.7.5

func TernaryDo(ok bool, doA func() interface{}, doB func() interface{}) interface{}

三目运算,执行函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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