Releases: ddddddO/gtree
Releases · ddddddO/gtree
v1.13.5
v1.13.4
v1.13.3
What's Changed
- Bump github.com/goccy/go-yaml from 1.19.1 to 1.19.2 by @dependabot[bot] in #339
- Bump github.com/urfave/cli/v3 from 3.6.1 to 3.6.2 by @dependabot[bot] in #340
- fix doc by @ddddddO in #342
Full Changelog: v1.13.2...v1.13.3
v1.13.2
What's Changed
- Bump github.com/urfave/cli/v3 from 3.6.0 to 3.6.1 by @dependabot[bot] in #334
- Bump github.com/goccy/go-yaml from 1.18.0 to 1.19.0 by @dependabot[bot] in #335
- Bump golang.org/x/sync from 0.18.0 to 0.19.0 by @dependabot[bot] in #336
- Bump github.com/goccy/go-yaml from 1.19.0 to 1.19.1 by @dependabot[bot] in #337
Full Changelog: v1.13.1...v1.13.2
v1.13.1
What's Changed
- Bump github.com/urfave/cli/v3 from 3.5.0 to 3.6.0 by @dependabot[bot] in #330
- Bump golang.org/x/sync from 0.17.0 to 0.18.0 by @dependabot[bot] in #331
- Fix gtree Web by @ddddddO in #333
Full Changelog: v1.13.0...v1.13.1
v1.13.0
What's Changed
I've updated the option functions to allow you to change the tree branches!
Added Options
- WithMidBranch
- WithLastBranch
- WithVLine
- WithHLine
Removed Options
The following functions were not used in GitHub repositories and have been removed:
- WithBranchFormatIntermedialNode
- WithBranchFormatLastNode
Full Changelog: v1.12.0...v1.13.0
v1.12.0
What's Changed
- Bump github.com/urfave/cli/v3 from 3.4.1 to 3.5.0 by @dependabot[bot] in #325
- Add option of allowing_duplicate_nodes by @ddddddO in #327
Tip
Specifying WithDuplicationAllowed function in NewRoot function,
which generates the Node arguments for the above functions,
allows multiple nodes with the same name to exist within the same hierarchy.
Standard Pattern and Pattern Allowing Node Duplication
package main
import (
"os"
"github.com/ddddddO/gtree"
)
func main() {
rootOfStandard := gtree.NewRoot("Standard Pattern")
addChildren(rootOfStandard)
_ = gtree.OutputFromRoot(os.Stdout, rootOfStandard)
// Standard Pattern
// ├── child 1
// │ └── child 2
// │ ├── child 3
// │ └── child 4
// │ ├── child 5
// │ └── child 6
// │ ├── child 7
// │ └── child 9
// └── child 8
rootOfAllowedDuplication := gtree.NewRoot("Pattern Allowing Node Duplication", gtree.WithDuplicationAllowed())
addChildren(rootOfAllowedDuplication)
_ = gtree.OutputFromRoot(os.Stdout, rootOfAllowedDuplication)
// Pattern Allowing Node Duplication
// ├── child 1
// │ └── child 2
// │ └── child 3
// ├── child 1
// │ └── child 2
// │ └── child 4
// │ ├── child 5
// │ ├── child 6
// │ │ └── child 7
// │ ├── child 6
// │ │ └── child 9
// │ └── child 5
// └── child 8
}
func addChildren(root *gtree.Node) {
root.Add("child 1").Add("child 2").Add("child 3")
var child4 *gtree.Node = root.Add("child 1").Add("child 2").Add("child 4")
child4.Add("child 5")
child4.Add("child 6").Add("child 7")
child4.Add("child 6").Add("child 9")
child4.Add("child 5")
root.Add("child 8")
}-> ref1(NewRoot)
-> ref2(OutputFromRoot)
-> ref3(WalkFromRoot)
-> ref4(WalkIterFromRoot)
Full Changelog: v1.11.9...v1.12.0
v1.11.9
What's Changed
- Bump github.com/urfave/cli/v3 from 3.3.8 to 3.4.1 by @dependabot[bot] in #321
- Bump golang.org/x/sync from 0.16.0 to 0.17.0 by @dependabot[bot] in #322
- update Go125 by @ddddddO in #323
Full Changelog: v1.11.8...v1.11.9
v1.11.8
What's Changed
- Bump github.com/goccy/go-yaml from 1.17.1 to 1.18.0 by @dependabot[bot] in #317
- Bump golang.org/x/sync from 0.14.0 to 0.15.0 by @dependabot[bot] in #318
- Bump github.com/urfave/cli/v3 from 3.3.3 to 3.3.8 by @dependabot[bot] in #319
- Bump golang.org/x/sync from 0.15.0 to 0.16.0 by @dependabot[bot] in #320
Full Changelog: v1.11.7...v1.11.8
v1.11.7
What's Changed
- Bump golang.org/x/sync from 0.13.0 to 0.14.0 by @dependabot in #315
- Bump github.com/urfave/cli/v3 from 3.3.2 to 3.3.3 by @dependabot in #316
- Add doc for custom writer
Full Changelog: v1.11.6...v1.11.7