syntax

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

func Comment

func Comment(_ any)

func Default

func Default[T any]() (t T)

func If

func If(b bool, f func())

func IfThenElse

func IfThenElse[T any](ifCon bool, thenCase T, elseCase T) T

func OsRelatedValue

func OsRelatedValue[T any](windows T, linux T, darwin T, others T) T

func TryCatch

func TryCatch(try func(), catch func(any)) (ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL