Skip to content

Commit 36263a0

Browse files
authored
checkpoint
1 parent b6e8685 commit 36263a0

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

printtree.go

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package printtree
2+
3+
type Tree struct {
4+
Name string
5+
Parent *Tree
6+
Sibling *Tree
7+
Child *Tree
8+
context *treeContext
9+
}
10+
11+
type treeContext struct {
12+
}
13+
14+
func (t *Tree)Indent() *Tree {
15+
if t.Child == nil {
16+
t.Child =
17+
}
18+
return t.Child
19+
}
20+
21+
func newTree(context *treeContext, parent *Tree) *Tree {
22+
return &Tree{
23+
context: context
24+
Parent: parent
25+
}
26+
}
27+

printttree_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package printtree
2+
3+
import (
4+
"tester"
5+
)
6+
7+
func TestTest(t *tester.Tester) {
8+
t.Equal("t", "t")
9+
}

0 commit comments

Comments
 (0)