gx

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cfg

func Cfg(name ...string) *gcfgx.Config

func Client

func Client(client ...*gclient.Client) *gclientx.Client

func Config

func Config(name ...string) *gcfgx.Config

func Go added in v0.8.8

func Go(
	ctx context.Context,
	goroutineFunc func(ctx context.Context),
	recoverFunc func(ctx context.Context, exception error),
	finallyFunc ...func(ctx context.Context),
)

func GoAnyway added in v0.8.8

func GoAnyway(
	ctx context.Context,
	goroutineFunc func(ctx context.Context),
)

func GoAnywayX added in v0.8.8

func GoAnywayX(
	goroutineFunc func(),
)

func GoX added in v0.7.0

func GoX(
	goroutineFunc func(),
	recoverFunc func(exception error),
	finallyFunc ...func(),
)

func Server added in v0.2.0

func Server(name ...interface{}) *ghttpx.Server

func Try added in v0.8.8

func Try(ctx context.Context, try func(ctx context.Context), finally ...func(ctx context.Context)) (err error)

func TryCatch added in v0.8.8

func TryCatch(ctx context.Context, try func(ctx context.Context), catch func(ctx context.Context, exception error), finally ...func(ctx context.Context))

func TryCatchX added in v0.7.0

func TryCatchX(try func(), catch func(exception error), finally ...func())

func TryIgnore added in v0.7.0

func TryIgnore(ctx context.Context, try func(ctx context.Context), finally ...func(ctx context.Context))

func TryIgnoreX added in v0.7.0

func TryIgnoreX(try func(), finally ...func())

func TryX added in v0.7.0

func TryX(try func(), finally ...func()) (err error)

func ViewX added in v0.3.5

func ViewX(name ...string) *gviewx.View

Types

This section is empty.

Jump to

Keyboard shortcuts

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