https://github.com/konojunya/go-frame
A Go library that displays a flat structure beautifully
https://github.com/konojunya/go-frame
fmt golang print
Last synced: 21 days ago
JSON representation
A Go library that displays a flat structure beautifully
- Host: GitHub
- URL: https://github.com/konojunya/go-frame
- Owner: konojunya
- License: mit
- Created: 2018-03-10T15:13:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T10:57:07.000Z (about 7 years ago)
- Last Synced: 2025-04-06T04:13:03.811Z (23 days ago)
- Topics: fmt, golang, print
- Language: Go
- Size: 114 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-frame
A Go library that displays a flat structure beautifully
## Description
A Go library made to display a flat structure beautifully on the console.
## Installation
```
$ go get -d github.com/konojunya/go-frame
```## Usage
```go
package mainimport (
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)
}
```## Development
```
$ dep ensure
```## Contribution
Please check the [issue](https://github.com/konojunya/go-frame/issues).
1. Fork it https://github.com/konojunya/go-frame
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create new Pull Request! :)## Licence
MIT
## Auther
- Twitter [@konojunya](https://twitter.com/konojunya)