package
Version:
v1.9.5
Opens a new window with list of versions in this module.
Published: Sep 14, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func If(condition bool, thenValue interface{}, elseValue interface{}) interface{}
三目运算
func IfDo(condition bool, thenDo func() interface{}, elseDo func() interface{}) interface{}
三目运算,执行函数
func Loop(n int, f func())
执行N次循环
func LoopI(n int, f func(i int))
执行N次循环,接收index参数
Source Files
¶
Click to show internal directories.
Click to hide internal directories.