Description
A go package that offers a try/catch statement block.
try alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view try alternatives based on common mentions on social networks and blogs.
-
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
Sonic
Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go. -
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
go-james
DISCONTINUED. James is your butler and helps you to create, build, debug, test and run your Go projects -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
rescached
DISCONTINUED. [mirror] Resolver (DNS) cache daemon. See https://sr.ht/~shulhan/rescached [Moved to: https://github.com/shuLhan/rescached] -
Goenv
DISCONTINUED. ๐บ Manage Your Applications Go Environment. [Moved to: https://github.com/Clivern/Goenv] -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules. -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
IP2Location.io Command Line
IP2Location.io command line to query IP geolocation data from IP2Location.io API
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of try or a related project?
README
try
A go package that offers a try/catch statement block.
Here is a sample program making use of the try package. In this sample, variables in scope are accessed to demonstrate how this package interacts with your program.
package main
import (
"github.com/thestrukture/try"
"fmt"
"errors"
)
func main(){
count := 0
try.Run(func(){
count++
count++
// Will perform an error check, panic will
// not be invoked if the interface passed is nil.
try.Throw(errors.New("Crashed!"))
fmt.Println(count);
}).Catch(func(e interface{}){
fmt.Println("Error : ", e)
}).Finally(func(){
fmt.Println("Done")
})
}