A Go library that displays a flat structure beautifully
A Go library made to display a flat structure beautifully on the console.
$ go get -d github.com/konojunya/go-frame
package main
import (
frame "github.com/konojunya/go-frame"
)
// User User model
type User struct {
Name string `frame:"Customer Name"`
Age int `frame:"Age"`
URL string `frame:"HomePage URL"`
}
func main() {
user := User{
Name: "konojunya",
Age: 21,
URL: "https://konojunya.com",
}
frame.Print(user)
}
$ dep ensure
Please check the issue.
- Fork it /~https://github.com/konojunya/go-frame
- Create your feature branch
- Commit your changes
- Push to the branch
- Create new Pull Request! :)
MIT
- Twitter @konojunya