Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ternary ¶
Ternary 三目运算符(ternary operator)
PS: (1) Golang原生不支持三目运算符,因此只能自己实现. (2) ternary adj.三元的,三重的
参考: golang三目运算的实现 https://www.cnblogs.com/GetcharZp/p/15172602.html
@param rst0 true 条件下的返回值 @param rst1 false条件下的返回值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.