Skip to content

konojunya/go-frame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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)
}

Development

$ dep ensure

Contribution

Please check the issue.

  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

About

A Go library that displays a flat structure beautifully

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages