package
Version:
v0.0.0-...-5c98b36
Opens a new window with list of versions in this module.
Published: Jun 23, 2022
License: MulanPSL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
misc 杂七杂八的函数
函数名 |
描述 |
Hex2Int |
16进制字符串转整数 |
Documentation
¶
Hex2Int 十六进制字符串转换为整数。
hexadecimal string to integer.
func IfThen[T any](cond bool, trueVal T, falseVal T) T
IfThen 当 cond 返回 true,则返回 trueVal,或者返回 flaseVal
使用它可以替代 三元操作符号 (ternary conditional operator)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.