MCPcopy Create free account

hub / github.com/adonovan/gopl.io / functions

Functions421 in github.com/adonovan/gopl.io

↓ 1 callersFunctionbasename
basename removes directory components and a trailing .suffix. e.g., a => a, a.go => a, a/b/c.go => c, a/b.c.go => b.c !+
ch3/basename2/main.go:27
↓ 1 callersFunctionbasename
!+ basename removes directory components and a .suffix. e.g., a => a, a.go => a, a/b/c.go => c, a/b.c.go => b.c
ch3/basename1/main.go:26
↓ 1 callersFunctionbigSlowOperation
!+main
ch5/trace/main.go:15
↓ 1 callersFunctionbreadthFirst
!+breadthFirst breadthFirst calls f for each item in the worklist. Any items returned by f are added to the worklist. f is called at most once for eac
ch5/findlinks3/findlinks.go:21
↓ 1 callersFunctionbroadcaster
()
ch8/chat/chat.go:26
↓ 1 callersFunctionbytesInUse
(username string)
ch11/storage1/storage.go:18
↓ 1 callersFunctionbytesInUse
(username string)
ch11/storage2/storage.go:17
↓ 1 callersMethodcall
(f Func, key string)
ch9/memo5/memo.go:74
↓ 1 callersFunctioncancelled
()
ch8/du4/main.go:23
↓ 1 callersFunctionclientWriter
(conn net.Conn, ch <-chan string)
ch8/chat/chat.go:70
↓ 1 callersFunctioncomma
!+ comma inserts commas in a non-negative decimal integer string.
ch3/comma/main.go:32
↓ 1 callersFunctioncontainsAll
containsAll reports whether x contains the elements of y, in order.
ch7/xmlselect/main.go:43
↓ 1 callersFunctioncounter
!+
ch8/pipeline3/main.go:13
↓ 1 callersFunctioncrawl
(url string)
ch8/crawl3/findlinks.go:21
↓ 1 callersFunctioncrawl
(url string)
ch8/crawl2/findlinks.go:25
↓ 1 callersFunctioncrawl
!+crawl
ch8/crawl1/findlinks.go:23
↓ 1 callersMethoddeliver
(response chan<- result)
ch9/memo5/memo.go:81
↓ 1 callersFunctiondirents
dirents returns the entries of directory dir.
ch8/du3/main.go:106
↓ 1 callersFunctiondirents
dirents returns the entries of directory dir.
ch8/du1/main.go:67
↓ 1 callersFunctiondirents
dirents returns the entries of directory dir.
ch8/du2/main.go:87
↓ 1 callersFunctiondirents
concurrency-limiting counting semaphore dirents returns the entries of directory dir. !+5
ch8/du4/main.go:121
↓ 1 callersFunctiondisplay
!+display
ch12/display/display.go:54
↓ 1 callersFunctionecho
(c net.Conn, shout string, delay time.Duration)
ch8/reverb2/reverb.go:18
↓ 1 callersFunctionecho
!+
ch8/reverb1/reverb.go:19
↓ 1 callersFunctionencode
!-Marshal encode writes to buf an S-expression representation of v. !+encode
ch12/sexpr/encode.go:28
↓ 1 callersFunctionequal
!+
ch13/equal/equal.go:15
↓ 1 callersFunctionf
!-
ch5/defer2/defer.go:29
↓ 1 callersFunctionfetch
(url string, ch chan<- string)
ch1/fetchall/main.go:31
↓ 1 callersFunctionfetch
!+ Fetch downloads the URL and returns the name and length of the local file.
ch5/fetch/main.go:20
↓ 1 callersFunctionfib
(x int)
ch8/spinner/main.go:31
↓ 1 callersFunctionfindLinks
findLinks performs an HTTP GET request for url, parses the response as HTML, and extracts and returns the links.
ch5/findlinks2/main.go:52
↓ 1 callersFunctionforEachNode
Copied from gopl.io/ch5/outline2.
ch5/title2/title.go:20
↓ 1 callersFunctionforEachNode
!-Extract Copied from gopl.io/ch5/outline2.
ch5/links/links.go:57
↓ 1 callersFunctionforEachNode
Copied from gopl.io/ch5/outline2.
ch5/title3/title.go:19
↓ 1 callersFunctionforEachNode
Copied from gopl.io/ch5/outline2.
ch5/title1/title.go:32
↓ 1 callersFunctionforEachNode
!+forEachNode forEachNode calls the functions pre(x) and post(x) for each node x in the tree rooted at n. Both functions are optional. pre is called b
ch5/outline2/outline.go:47
↓ 1 callersFunctionformatAtom
formatAtom formats a value without inspecting its internal structure.
ch12/format/format.go:21
↓ 1 callersFunctionhandleConn
!+
ch8/reverb2/reverb.go:27
↓ 1 callersFunctionhandleConn
(c net.Conn)
ch8/reverb1/reverb.go:27
↓ 1 callersFunctionhandleConn
(c net.Conn)
ch8/clock1/clock.go:32
↓ 1 callersFunctionhandleConn
!-broadcaster !+handleConn
ch8/chat/chat.go:50
↓ 1 callersFunctionhandleConn
(c net.Conn)
ch8/clock2/clock.go:16
↓ 1 callersMethodicer
(iced chan<- cake, baked <-chan cake)
ch8/cake/cake.go:47
↓ 1 callersMethodinscriber
(iced <-chan cake)
ch8/cake/cake.go:57
↓ 1 callersFunctionintsToString
!+ intsToString is like fmt.Sprint(values) but adds commas.
ch3/printints/main.go:16
↓ 1 callersFunctionlaunch
!-
ch8/countdown1/countdown.go:27
↓ 1 callersFunctionlaunch
!-
ch8/countdown2/countdown.go:44
↓ 1 callersFunctionlaunch
!-
ch8/countdown3/countdown.go:49
↓ 1 callersFunctionmandelbrot
(z complex128)
ch3/mandelbrot/main.go:37
↓ 1 callersFunctionmustCopy
!-
ch8/netcat3/netcat.go:35
↓ 1 callersFunctionmustCopy
(dst io.Writer, src io.Reader)
ch8/netcat1/netcat.go:26
↓ 1 callersFunctionnonempty
nonempty returns a slice holding only the non-empty strings. The underlying array is modified during the call.
ch4/nonempty/main.go:15
↓ 1 callersFunctionoutline
(stack []string, n *html.Node)
ch5/outline/main.go:26
↓ 1 callersFunctionoutline
(url string)
ch5/outline2/outline.go:23
↓ 1 callersFunctionparseAndCheck
-- main code for gopl.io/ch7/surface -- !+parseAndCheck
ch7/surface/surface.go:67
↓ 1 callersFunctionparseBinary
binary = unary ('+' binary)* parseBinary stops when it encounters an operator of lower precedence than prec1.
ch7/eval/parse.go:87
↓ 1 callersFunctionparsePrimary
primary = id | id '(' expr ',' ... ',' expr ')' | num | '(' expr ')'
ch7/eval/parse.go:114
↓ 1 callersFunctionparseUnary
unary = '+' expr | primary
ch7/eval/parse.go:101
↓ 1 callersFunctionpretty
(p *printer, v reflect.Value)
ch12/sexpr/pretty.go:114
↓ 1 callersFunctionprintDiskUsage
(nfiles, nbytes int64)
ch8/du1/main.go:45
↓ 1 callersFunctionprintStack
()
ch5/defer2/defer.go:21
↓ 1 callersFunctionprinter
(in <-chan int)
ch8/pipeline3/main.go:27
↓ 1 callersFunctionrandomPalindrome
!-example * //!+random import "math/rand" //!-random */ !+random randomPalindrome returns a palindrome whose length and contents are derived from the
ch11/word2/word_test.go:78
↓ 1 callersFunctionreadList
!-read !+readlist
ch12/sexpr/decode.go:109
↓ 1 callersMethodserver
!-get !+monitor
ch9/memo5/memo.go:60
↓ 1 callersFunctionsoleTitle
!+ soleTitle returns the text of the first non-empty title element in doc, and an error if there was not exactly one.
ch5/title3/title.go:34
↓ 1 callersFunctionspinner
(delay time.Duration)
ch8/spinner/main.go:22
↓ 1 callersFunctionsquarer
(out chan<- int, in <-chan int)
ch8/pipeline3/main.go:20
↓ 1 callersFunctionsquares
!+ squares returns a function that returns the next square number each time it is called.
ch5/squares/main.go:14
↓ 1 callersFunctionsurface
(w io.Writer, f func(x, y float64) float64)
ch7/surface/surface.go:47
↓ 1 callersFunctionteller
()
ch9/bank1/bank.go:16
↓ 1 callersFunctiontitle
!+
ch5/title2/title.go:33
↓ 1 callersFunctiontitle
!-
ch5/title3/title.go:67
↓ 1 callersFunctiontitle
!+
ch5/title1/title.go:45
↓ 1 callersFunctiontoJPEG
(in io.Reader, out io.Writer)
ch10/jpeg/main.go:28
↓ 1 callersFunctiontopoSort
(m map[string][]string)
ch5/toposort/main.go:44
↓ 1 callersFunctiontrace
(msg string)
ch5/trace/main.go:21
↓ 1 callersFunctionvisit
!-main !+visit visit appends to links each link found in n and returns the result.
ch5/findlinks1/main.go:32
↓ 1 callersFunctionvisit
visit appends to links each link found in n, and returns the result.
ch5/findlinks2/main.go:22
↓ 1 callersFunctionwalkDir
walkDir recursively walks the file tree rooted at dir and sends the size of each found file on fileSizes. !+walkDir
ch8/du3/main.go:86
↓ 1 callersFunctionwalkDir
!-main !+walkDir walkDir recursively walks the file tree rooted at dir and sends the size of each found file on fileSizes.
ch8/du1/main.go:55
↓ 1 callersFunctionwalkDir
walkDir recursively walks the file tree rooted at dir and sends the size of each found file on fileSizes.
ch8/du2/main.go:75
↓ 1 callersFunctionwalkDir
walkDir recursively walks the file tree rooted at dir and sends the size of each found file on fileSizes. !+4
ch8/du4/main.go:96
↓ 1 callersFunctionwrite
(buf *bytes.Buffer, e Expr)
ch7/eval/print.go:19
FunctionBalance
()
ch9/bank3/bank.go:23
FunctionBalance
()
ch9/bank2/bank.go:21
FunctionBalance
()
ch9/bank1/bank.go:14
FunctionBenchmark
(b *testing.B)
ch8/cake/cake_test.go:22
FunctionBenchmarkBitCount
(b *testing.B)
ch2/popcount/popcount_test.go:52
FunctionBenchmarkBuffers
(b *testing.B)
ch8/cake/cake_test.go:29
FunctionBenchmarkIsPalindrome
!-test !+bench
ch11/word2/word_test.go:48
FunctionBenchmarkPopCount
-- Benchmarks --
ch2/popcount/popcount_test.go:46
FunctionBenchmarkPopCountByClearing
(b *testing.B)
ch2/popcount/popcount_test.go:58
FunctionBenchmarkPopCountByShifting
(b *testing.B)
ch2/popcount/popcount_test.go:64
FunctionBenchmarkSlowIcing
(b *testing.B)
ch8/cake/cake_test.go:59
FunctionBenchmarkSlowIcingManyIcers
(b *testing.B)
ch8/cake/cake_test.go:67
FunctionBenchmarkVariable
(b *testing.B)
ch8/cake/cake_test.go:37
FunctionBenchmarkVariableBuffers
(b *testing.B)
ch8/cake/cake_test.go:47
FunctionCToF
(c Celsius)
ch7/tempconv/tempconv.go:17
MethodCheck
!+Check
ch7/eval/check.go:13
← previousnext →101–200 of 421, ranked by callers