langutil

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If added in v1.8.2

func If(condition bool, thenValue interface{}, elseValue interface{}) interface{}

三目运算

func IfDo added in v1.8.2

func IfDo(condition bool, thenDo func() interface{}, elseDo func() interface{}) interface{}

三目运算,执行函数

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参数

Types

This section is empty.

Jump to

Keyboard shortcuts

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