tern is a lightweight Go package for simple, concise ternary expressions, enabling clear conditional logic.
-
Updated
Dec 17, 2024 - Go
tern is a lightweight Go package for simple, concise ternary expressions, enabling clear conditional logic.
在Golang中使用三木运算, 测试覆盖率100%, 请放心使用 / Use ternary operator in Golang
TernAry is a simple, lightweight, and easy-to-use function to implement a ternary statement in golang.
Add a description, image, and links to the ternary-operator topic page so that developers can more easily learn about it.
To associate your repository with the ternary-operator topic, visit your repo's landing page and select "manage topics."