Skip to content

Very simply formats a go slice of structs as a table, in ~100 lines

License

Notifications You must be signed in to change notification settings

ironiridis/astab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

astab

Very simply formats a go slice of structs as a table, in ~100 lines of gofmt'ed code. No dependencies.

Why?

I write a lot of little utility functions in Go, and over time I'm realizing my eyes are tired of looking at output from fmt.Printf's %+v format.

If you have a slice of any arbitrary struct, you can dump its exported fields to os.Stdout in a nice table now.

Here's hoping this never comes up in a job interview.

About

Very simply formats a go slice of structs as a table, in ~100 lines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages