github.com/brownsys/tracing-framework-go@v0.0.0-20161210174012-0542a62412fe/go/darwin_amd64/misc/tour/content/concurrency/exercise-equivalent-binary-trees.go (about)

     1  // +build no-build OMIT
     2  
     3  package main
     4  
     5  import "golang.org/x/tour/tree"
     6  
     7  // Walk walks the tree t sending all values
     8  // from the tree to the channel ch.
     9  func Walk(t *tree.Tree, ch chan int)
    10  
    11  // Same determines whether the trees
    12  // t1 and t2 contain the same values.
    13  func Same(t1, t2 *tree.Tree) bool
    14  
    15  func main() {
    16  }