Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adonovan/gopl.io
/ functions
Functions
421 in github.com/adonovan/gopl.io
⨍
Functions
421
◇
Types & classes
83
↓ 1 callers
Function
basename
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 callers
Function
basename
!+ 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 callers
Function
bigSlowOperation
!+main
ch5/trace/main.go:15
↓ 1 callers
Function
breadthFirst
!+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 callers
Function
broadcaster
()
ch8/chat/chat.go:26
↓ 1 callers
Function
bytesInUse
(username string)
ch11/storage1/storage.go:18
↓ 1 callers
Function
bytesInUse
(username string)
ch11/storage2/storage.go:17
↓ 1 callers
Method
call
(f Func, key string)
ch9/memo5/memo.go:74
↓ 1 callers
Function
cancelled
()
ch8/du4/main.go:23
↓ 1 callers
Function
clientWriter
(conn net.Conn, ch <-chan string)
ch8/chat/chat.go:70
↓ 1 callers
Function
comma
!+ comma inserts commas in a non-negative decimal integer string.
ch3/comma/main.go:32
↓ 1 callers
Function
containsAll
containsAll reports whether x contains the elements of y, in order.
ch7/xmlselect/main.go:43
↓ 1 callers
Function
counter
!+
ch8/pipeline3/main.go:13
↓ 1 callers
Function
crawl
(url string)
ch8/crawl3/findlinks.go:21
↓ 1 callers
Function
crawl
(url string)
ch8/crawl2/findlinks.go:25
↓ 1 callers
Function
crawl
!+crawl
ch8/crawl1/findlinks.go:23
↓ 1 callers
Method
deliver
(response chan<- result)
ch9/memo5/memo.go:81
↓ 1 callers
Function
dirents
dirents returns the entries of directory dir.
ch8/du3/main.go:106
↓ 1 callers
Function
dirents
dirents returns the entries of directory dir.
ch8/du1/main.go:67
↓ 1 callers
Function
dirents
dirents returns the entries of directory dir.
ch8/du2/main.go:87
↓ 1 callers
Function
dirents
concurrency-limiting counting semaphore dirents returns the entries of directory dir. !+5
ch8/du4/main.go:121
↓ 1 callers
Function
display
!+display
ch12/display/display.go:54
↓ 1 callers
Function
echo
(c net.Conn, shout string, delay time.Duration)
ch8/reverb2/reverb.go:18
↓ 1 callers
Function
echo
!+
ch8/reverb1/reverb.go:19
↓ 1 callers
Function
encode
!-Marshal encode writes to buf an S-expression representation of v. !+encode
ch12/sexpr/encode.go:28
↓ 1 callers
Function
equal
!+
ch13/equal/equal.go:15
↓ 1 callers
Function
f
!-
ch5/defer2/defer.go:29
↓ 1 callers
Function
fetch
(url string, ch chan<- string)
ch1/fetchall/main.go:31
↓ 1 callers
Function
fetch
!+ Fetch downloads the URL and returns the name and length of the local file.
ch5/fetch/main.go:20
↓ 1 callers
Function
fib
(x int)
ch8/spinner/main.go:31
↓ 1 callers
Function
findLinks
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 callers
Function
forEachNode
Copied from gopl.io/ch5/outline2.
ch5/title2/title.go:20
↓ 1 callers
Function
forEachNode
!-Extract Copied from gopl.io/ch5/outline2.
ch5/links/links.go:57
↓ 1 callers
Function
forEachNode
Copied from gopl.io/ch5/outline2.
ch5/title3/title.go:19
↓ 1 callers
Function
forEachNode
Copied from gopl.io/ch5/outline2.
ch5/title1/title.go:32
↓ 1 callers
Function
forEachNode
!+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 callers
Function
formatAtom
formatAtom formats a value without inspecting its internal structure.
ch12/format/format.go:21
↓ 1 callers
Function
handleConn
!+
ch8/reverb2/reverb.go:27
↓ 1 callers
Function
handleConn
(c net.Conn)
ch8/reverb1/reverb.go:27
↓ 1 callers
Function
handleConn
(c net.Conn)
ch8/clock1/clock.go:32
↓ 1 callers
Function
handleConn
!-broadcaster !+handleConn
ch8/chat/chat.go:50
↓ 1 callers
Function
handleConn
(c net.Conn)
ch8/clock2/clock.go:16
↓ 1 callers
Method
icer
(iced chan<- cake, baked <-chan cake)
ch8/cake/cake.go:47
↓ 1 callers
Method
inscriber
(iced <-chan cake)
ch8/cake/cake.go:57
↓ 1 callers
Function
intsToString
!+ intsToString is like fmt.Sprint(values) but adds commas.
ch3/printints/main.go:16
↓ 1 callers
Function
launch
!-
ch8/countdown1/countdown.go:27
↓ 1 callers
Function
launch
!-
ch8/countdown2/countdown.go:44
↓ 1 callers
Function
launch
!-
ch8/countdown3/countdown.go:49
↓ 1 callers
Function
mandelbrot
(z complex128)
ch3/mandelbrot/main.go:37
↓ 1 callers
Function
mustCopy
!-
ch8/netcat3/netcat.go:35
↓ 1 callers
Function
mustCopy
(dst io.Writer, src io.Reader)
ch8/netcat1/netcat.go:26
↓ 1 callers
Function
nonempty
nonempty returns a slice holding only the non-empty strings. The underlying array is modified during the call.
ch4/nonempty/main.go:15
↓ 1 callers
Function
outline
(stack []string, n *html.Node)
ch5/outline/main.go:26
↓ 1 callers
Function
outline
(url string)
ch5/outline2/outline.go:23
↓ 1 callers
Function
parseAndCheck
-- main code for gopl.io/ch7/surface -- !+parseAndCheck
ch7/surface/surface.go:67
↓ 1 callers
Function
parseBinary
binary = unary ('+' binary)* parseBinary stops when it encounters an operator of lower precedence than prec1.
ch7/eval/parse.go:87
↓ 1 callers
Function
parsePrimary
primary = id | id '(' expr ',' ... ',' expr ')' | num | '(' expr ')'
ch7/eval/parse.go:114
↓ 1 callers
Function
parseUnary
unary = '+' expr | primary
ch7/eval/parse.go:101
↓ 1 callers
Function
pretty
(p *printer, v reflect.Value)
ch12/sexpr/pretty.go:114
↓ 1 callers
Function
printDiskUsage
(nfiles, nbytes int64)
ch8/du1/main.go:45
↓ 1 callers
Function
printStack
()
ch5/defer2/defer.go:21
↓ 1 callers
Function
printer
(in <-chan int)
ch8/pipeline3/main.go:27
↓ 1 callers
Function
randomPalindrome
!-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 callers
Function
readList
!-read !+readlist
ch12/sexpr/decode.go:109
↓ 1 callers
Method
server
!-get !+monitor
ch9/memo5/memo.go:60
↓ 1 callers
Function
soleTitle
!+ 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 callers
Function
spinner
(delay time.Duration)
ch8/spinner/main.go:22
↓ 1 callers
Function
squarer
(out chan<- int, in <-chan int)
ch8/pipeline3/main.go:20
↓ 1 callers
Function
squares
!+ squares returns a function that returns the next square number each time it is called.
ch5/squares/main.go:14
↓ 1 callers
Function
surface
(w io.Writer, f func(x, y float64) float64)
ch7/surface/surface.go:47
↓ 1 callers
Function
teller
()
ch9/bank1/bank.go:16
↓ 1 callers
Function
title
!+
ch5/title2/title.go:33
↓ 1 callers
Function
title
!-
ch5/title3/title.go:67
↓ 1 callers
Function
title
!+
ch5/title1/title.go:45
↓ 1 callers
Function
toJPEG
(in io.Reader, out io.Writer)
ch10/jpeg/main.go:28
↓ 1 callers
Function
topoSort
(m map[string][]string)
ch5/toposort/main.go:44
↓ 1 callers
Function
trace
(msg string)
ch5/trace/main.go:21
↓ 1 callers
Function
visit
!-main !+visit visit appends to links each link found in n and returns the result.
ch5/findlinks1/main.go:32
↓ 1 callers
Function
visit
visit appends to links each link found in n, and returns the result.
ch5/findlinks2/main.go:22
↓ 1 callers
Function
walkDir
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 callers
Function
walkDir
!-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 callers
Function
walkDir
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 callers
Function
walkDir
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 callers
Function
write
(buf *bytes.Buffer, e Expr)
ch7/eval/print.go:19
Function
Balance
()
ch9/bank3/bank.go:23
Function
Balance
()
ch9/bank2/bank.go:21
Function
Balance
()
ch9/bank1/bank.go:14
Function
Benchmark
(b *testing.B)
ch8/cake/cake_test.go:22
Function
BenchmarkBitCount
(b *testing.B)
ch2/popcount/popcount_test.go:52
Function
BenchmarkBuffers
(b *testing.B)
ch8/cake/cake_test.go:29
Function
BenchmarkIsPalindrome
!-test !+bench
ch11/word2/word_test.go:48
Function
BenchmarkPopCount
-- Benchmarks --
ch2/popcount/popcount_test.go:46
Function
BenchmarkPopCountByClearing
(b *testing.B)
ch2/popcount/popcount_test.go:58
Function
BenchmarkPopCountByShifting
(b *testing.B)
ch2/popcount/popcount_test.go:64
Function
BenchmarkSlowIcing
(b *testing.B)
ch8/cake/cake_test.go:59
Function
BenchmarkSlowIcingManyIcers
(b *testing.B)
ch8/cake/cake_test.go:67
Function
BenchmarkVariable
(b *testing.B)
ch8/cake/cake_test.go:37
Function
BenchmarkVariableBuffers
(b *testing.B)
ch8/cake/cake_test.go:47
Function
CToF
(c Celsius)
ch7/tempconv/tempconv.go:17
Method
Check
!+Check
ch7/eval/check.go:13
← previous
next →
101–200 of 421, ranked by callers