Simple Package which Serializes Struct to Json
Given a Struct
type Person struct {
Name string
}
You implement the package like so
func main() {
s, k := jstra.Serialize(Person{Name: "John"})
if !k {
fmt.Print("Error\n")
return
}
fmt.Println(s)
}
It gives the following output
{"name":"John"}
FORK and HACK
John Nyingi