d6o / gotree Goto Github PK
View Code? Open in Web Editor NEWA Tree printer module written in GoLang
Home Page: https://disiqueira.github.io/GoTree/
License: MIT License
A Tree printer module written in GoLang
Home Page: https://disiqueira.github.io/GoTree/
License: MIT License
Had to revert to the version 20 days ago.
./gorganizer.go:24: undefined: gotree.GTStructure
./gorganizer.go:26: undefined: gotree.GTStructure
./gorganizer.go:38: undefined: gotree.GTStructure
./gorganizer.go:109: undefined: gotree.GTStructure
./gorganizer.go:114: undefined: gotree.PrintTree
./gorganizer.go:119: undefined: gotree.GTStructure
./ini.go:54: undefined: gotree.GTStructure
./ini.go:60: undefined: gotree.GTStructure
./ini.go:68: undefined: gotree.GTStructure
./ini.go:78: undefined: gotree.PrintTree
Hi,
found this repo today, tried doing the go get
line to add it to my project, discovered it downloads either some .a file or the pkg code for the v1 release. Not sure what is wrong with the repo, guessing a bad release setup in github or go.mod file?
Would much prefer to import your repo instead of forking the latest version to resolve this.
Thanks
When using dep
(and maybe others) to install this library, it pickup the latest tagged version 0.1. I would like to use master without having to add a constraint in the Gopkg.toml.
Could you tag the latest master to a new semver version, 0.2.0 or something like that?
Thanks!
May I create a feature for more beautiful view for node strings with "\n"(newlines).
Could you clarify.
Prototype:
artist := gotree.New("Pantera")
album := artist.Add("Far Beyond\nDriven") // <<----- add newline here
album.Add("5 minutes Alone")
artist.Add("Power Metal")
fmt.Println(artist.Print())
// Output:
// Pantera
// ├───+ Far Beyond
// │ │ Driven // <<<<----- good view on new line
// │ └── 5 minutes Alone
// └── Power Metal
Hi,
In our fork (https://github.com/arr-ai/wbnf/blob/master/gotree/gotree.go) we have added an option to sort the tree, our use-case wants to sort the whole tree based on the leafs which have numbers as the prefix.
Is this something we should look into getting upstream?
The test file contains a test, but it is only a visual inspection test.
A small refactor can allow to test dynamically, and I have a patch ready if you are interested.
wondering if it would makes sense to extend this to allow printing a file system tree ?
The reason being that i am toying with the idea to extend this lib a bit to show git status and maybe a few other things.
The idea is that you can just install it on any machine and have a decent folder view tool, along with the micro terminal IDE ( https://github.com/zyedidia/micro )
Wondering what you think..
There is a typo in the README.md
.
Simple Go module to print tree structures in terminal. Heavily inpired inspired by The Tree Command for Linux
Hi,
I have just created a PR #5 which changes items in GTStructure
from value receiver to a pointer. This is an API breaking change so not sure if you are open for it.
This change basically has two benefits:
WDYT about it? All remarks are welcomed.
I am happy to update README.md
as well with the usage example if you think that this PR brings any value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.