Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Dec 11, 2021
1 parent 38b383e commit bb96e29
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README_Package_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@ func main() {
}

```

- You can also output JSON/YAML/TOML.
- `gtree.EncodeJSON()`
- `gtree.EncodeTOML()`
- `gtree.EncodeYAML()`
12 changes: 11 additions & 1 deletion README_Package_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,14 @@ func main() {
// ├── go.mod
// ├── go.sum
// ├── LICENSE
// ├── makefile
// ├── node.go
// ├── programmable.go
// ├── programmable_test.go
// ├── README.md
// ├── README_CLI.md
// ├── README_Package_1.md
// ├── README_Package_2.md
// ├── sample
// │ ├── find_pipe_programmable-gtree
// │ │ └── main.go
Expand All @@ -214,7 +218,13 @@ func main() {
// │ └── sample6.md
// ├── tmp.md
// ├── tree.go
// └── tree_test.go
// ├── tree_json.go
// ├── tree_json_test.go
// ├── tree_test.go
// ├── tree_toml.go
// ├── tree_toml_test.go
// ├── tree_yaml.go
// └── tree_yaml_test.go
}

```
13 changes: 12 additions & 1 deletion sample/find_pipe_programmable-gtree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func main() {
if err := gtree.ExecuteProgrammably(os.Stdout, root); err != nil {
panic(err)
}
// Output:
// .
// ├── .github
// │ └── workflows
Expand All @@ -52,10 +53,14 @@ func main() {
// ├── go.mod
// ├── go.sum
// ├── LICENSE
// ├── makefile
// ├── node.go
// ├── programmable.go
// ├── programmable_test.go
// ├── README.md
// ├── README_CLI.md
// ├── README_Package_1.md
// ├── README_Package_2.md
// ├── sample
// │ ├── find_pipe_programmable-gtree
// │ │ └── main.go
Expand All @@ -78,5 +83,11 @@ func main() {
// │ └── sample6.md
// ├── tmp.md
// ├── tree.go
// └── tree_test.go
// ├── tree_json.go
// ├── tree_json_test.go
// ├── tree_test.go
// ├── tree_toml.go
// ├── tree_toml_test.go
// ├── tree_yaml.go
// └── tree_yaml_test.go
}

0 comments on commit bb96e29

Please sign in to comment.