update examples in main.go
restructure try() block generation