Catch
catch is a simple logging package which helps you read errors more easily and less frustrating. Many more features are to be developed in the future, do contribute if you will, thank you
Install:
go get github.com/abuabdillatief/catch@latest
Simple logging
package main
import "github.com/abuabdillatief/catch_test/catch"
type Student struct {
Name string
Age int
Addres Address
Nationality string
}
type Address struct {
Country CountryDetail
Street string
HouseNumber int64
}
type CountryDetail struct {
Country string
City string
}
func main() {
a := []string{"re1", "re2"}
b := Student{
Addres: Address{
Country: CountryDetail{
Country: "Indonesia",
City: "Pekabaru",
},
Street: "Kulim",
HouseNumber: 10,
},
Age: 27,
Name: "John Doe",
Nationality: "Indonesian",
}
c := make(map[string]string)
c["Age"] = "27"
d := []int{1, 3, 5, 5}
e := []string{"one", "two", "three"}
catch.Print(a)
catch.Print(b)
catch.Print(c)
catch.Print(d)
catch.Print(e)
}