tree package - golang.org/x/tour/tree - Go Packages
Common problems companies solve with Go Stories about how and why companies use Go How Go can help keep you secure by default Tips for writing clear, performant, and idiomatic Go code A complete introduction to building software with Go Reference documentation for Go's standard library Learn what's new in each Go release Videos from prior events Meet other local Go developers Learn and network with Go developers from around the world The Go project's official blog. Get help and stay informed from Go This package is not in the latest version of its module. This section is empty. This section is empty. This section is empty. A Tree is a binary tree with integer values. New returns a new, random binary tree holding the values k, 2k, ..., 10k.
Documentation ¶ Index ¶ type Tree func New(k int) *Tree func (t *Tree) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Tree ¶ type Tree struct { Left * Tree Value int Right * Tree } A Tree is a binary tree with integer values. func New ¶ func New(k int ) * Tree New returns a new, random binary tree holding the values k, 2k, ..., 10k. func (*Tree) String ¶ func (t * Tree ) String() string Source Files ¶ View all Source files tree.go Click to show internal directories. Click to hide internal directories.
related reading
- Go go-to guide · YourBasicyourbasic.org
- golang packaging, golang package structure, golang package naming convention, golang packages, go package structure, go packages tutorialgolinuxcloud.com
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Pointers & errors | Learn Go with testsquii.gitbook.io
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Package names - The Go Programming Languagego.dev
- Demystifying Function Parameters in Go- Alex Edwardsalexedwards.net
- Go Slices: usage and internals - The Go Programming Languagego.dev
- Tree (abstract data type) - Wikipediaen.wikipedia.org
- The Go Programming Language Specification - The Go Programming Languagego.dev
- Effective Go - The Go Programming Languagego.dev
- sync package - sync - Go Packagespkg.go.dev