Documentation ¶
Index ¶
- func ArchRelatedValue[T any](x64 T, x86 T, arm64 T, arm T, others T) T
- func Comment(_ any)
- func Default[T any]() (t T)
- func DoNot(_ any)
- func Example(_ any)
- func If(b bool, f func())
- func IfThenElse[T any](ifCon bool, thenCase T, elseCase T) T
- func OsRelatedValue[T any](windows T, linux T, darwin T, others T) T
- func TryCatch(try func(), catch func(any)) (ok bool)
- func TryCatchFinally(try func(), catch func(any), finally func()) (ok bool)
- func TryFinally(try func(), finally func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchRelatedValue ¶
func ArchRelatedValue[T any](x64 T, x86 T, arm64 T, arm T, others T) T
ArchRelatedValue returns the value of the os and arch related parameter.
func Comment ¶
func Comment(_ any)
Comment is a comment in a source file. Allows comment with syntax colouring
func DoNot ¶ added in v0.0.14
func DoNot(_ any)
DoNot is a comment in a source file. Allows comment with syntax colouring
func Example ¶ added in v0.0.14
func Example(_ any)
Example is a comment in a source file. Allows comment with syntax colouring
func IfThenElse ¶
IfThenElse returns the result of the thenCase if the ifCon is true, else the result of the elseCase. it provides a ternary operator-like syntax.
func OsRelatedValue ¶
func OsRelatedValue[T any](windows T, linux T, darwin T, others T) T
OsRelatedValue returns the value of the os related parameter.
func TryCatchFinally ¶ added in v0.0.13
TryCatchFinally is a try-catch-finally statement.
func TryFinally ¶ added in v0.0.13
func TryFinally(try func(), finally func())
TryFinally is a try-finally statement.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.