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
Method
Check
(vars map[Var]bool)
ch7/eval/check.go:18
Method
Check
(vars map[Var]bool)
ch7/eval/check.go:22
Method
Check
(vars map[Var]bool)
ch7/eval/check.go:29
Method
Check
(vars map[Var]bool)
ch7/eval/check.go:39
Function
CheckQuota
(username string)
ch11/storage1/storage.go:29
Function
Deposit
(amount int)
ch9/bank3/bank.go:17
Function
Deposit
(amount int)
ch9/bank2/bank.go:15
Function
Deposit
receive balance
ch9/bank1/bank.go:13
Function
Distance
traditional function
ch6/geometry/geometry.go:15
Method
Distance
same thing, but as a method of the Point type
ch6/geometry/geometry.go:20
Method
Distance
Distance returns the distance traveled along the path.
ch6/geometry/geometry.go:32
Method
Eval
!-env !+Eval1
ch7/eval/eval.go:22
Method
Eval
(_ Env)
ch7/eval/eval.go:26
Method
Eval
!-Eval1 !+Eval2
ch7/eval/eval.go:34
Method
Eval
(env Env)
ch7/eval/eval.go:44
Method
Eval
(env Env)
ch7/eval/eval.go:58
Function
ExampleIsPalindrome
!-bench !+example
ch11/word2/word_test.go:58
Function
ExamplePrintDuration
()
ch12/methods/methods_test.go:13
Function
ExamplePrintReplacer
()
ch12/methods/methods_test.go:24
Function
Example_array
()
ch12/display/display_test.go:85
Function
Example_equal
()
ch13/equal/equal_test.go:96
Function
Example_equalCycle
()
ch13/equal/equal_test.go:111
Function
Example_expr
NOTE: we can't use !+..!- comments to excerpt these tests into the book because it defeats the Example mechanism, which requires the // Output comment
ch12/display/display_test.go:22
Function
Example_interface
()
ch12/display/display_test.go:68
Function
Example_movie
()
ch12/display/display_test.go:93
Function
Example_nilInterface
()
ch12/display/display_test.go:44
Function
Example_one
()
ch6/intset/intset_test.go:8
Function
Example_one
()
ch2/tempconv0/tempconv_test.go:8
Function
Example_ptrToInterface
()
ch12/display/display_test.go:52
Function
Example_ptrToInterface2
()
ch12/display/display_test.go:76
Function
Example_slice
()
ch12/display/display_test.go:36
Function
Example_struct
()
ch12/display/display_test.go:60
Function
Example_two
()
ch6/intset/intset_test.go:33
Function
Example_two
()
ch2/tempconv0/tempconv_test.go:27
Function
Format
Format formats an expression as a string. It does not attempt to remove unnecessary parens.
ch7/eval/print.go:13
Method
Get
Get is concurrency-safe.
ch9/memo2/memo.go:33
Method
Get
(key string)
ch9/memo4/memo.go:38
Method
Get
!+
ch9/memo3/memo.go:32
Method
Get
(key string)
ch9/memo5/memo.go:47
Method
Get
NOTE: not concurrency-safe!
ch9/memo1/memo.go:31
Method
Len
()
ch7/sorting/main.go:60
Method
Len
()
ch7/sorting/main.go:150
Method
Less
(i, j int)
ch7/sorting/main.go:61
Method
Less
(i, j int)
ch7/sorting/main.go:70
Method
Less
(i, j int)
ch7/sorting/main.go:151
Function
New
(f Func)
ch9/memo2/memo.go:20
Function
New
(f Func)
ch9/memo4/memo.go:28
Function
New
(f Func)
ch9/memo3/memo.go:26
Function
New
New returns a memoization of f. Clients must subsequently call Close.
ch9/memo5/memo.go:41
Function
New
(f Func)
ch9/memo1/memo.go:26
Function
NewWriter
NewWriter returns a writer for bzip2-compressed streams.
ch13/bzip-print/bzip2.go:36
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
ch7/http1/main.go:28
Method
ServeHTTP
!+handler
ch7/http2/main.go:27
Method
String
()
ch7/http1/main.go:24
Method
String
()
ch7/http2/main.go:22
Method
String
()
ch7/http3/main.go:18
Method
String
()
ch7/tempconv/tempconv.go:20
Method
String
()
ch2/tempconv/tempconv.go:20
Method
String
()
ch2/tempconv/tempconv.go:21
Method
Swap
(i, j int)
ch7/sorting/main.go:62
Method
Swap
(i, j int)
ch7/sorting/main.go:71
Method
Swap
(i, j int)
ch7/sorting/main.go:152
Function
Test
This test ensures that the program terminates without crashing.
ch12/display/display_test.go:154
Function
Test
Test verifies that encoding and decoding a complex data value produces an equal result. The test does not make direct assertions about the encoded ou
ch12/sexpr/sexpr_test.go:21
Function
Test
(t *testing.T)
ch12/format/format_test.go:14
Function
Test
(t *testing.T)
ch9/memo2/memo_test.go:15
Function
Test
(t *testing.T)
ch9/memo4/memo_test.go:15
Function
Test
(t *testing.T)
ch9/memo3/memo_test.go:15
Function
Test
(t *testing.T)
ch9/memo5/memo_test.go:15
Function
Test
(t *testing.T)
ch9/memo1/memo_test.go:15
Function
TestBank
(t *testing.T)
ch9/bank3/bank_test.go:13
Function
TestBank
(t *testing.T)
ch9/bank2/bank_test.go:13
Function
TestBank
(t *testing.T)
ch9/bank1/bank_test.go:13
Function
TestBzip2
(t *testing.T)
ch13/bzip-print/bzip2_test.go:15
Function
TestBzip2
(t *testing.T)
ch13/bzip/bzip2_test.go:15
Function
TestCanalPalindrome
(t *testing.T)
ch11/word1/word_test.go:36
Function
TestCheckQuotaNotifiesUser
(t *testing.T)
ch11/storage2/quota_test.go:12
Function
TestConcurrent
(t *testing.T)
ch9/memo2/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
ch9/memo4/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
ch9/memo3/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
ch9/memo5/memo_test.go:21
Function
TestConcurrent
NOTE: not concurrency-safe! Test fails.
ch9/memo1/memo_test.go:21
Function
TestCoverage
!+TestCoverage
ch7/eval/coverage_test.go:13
Function
TestEcho
(t *testing.T)
ch11/echo/echo_test.go:15
Function
TestEqual
(t *testing.T)
ch13/equal/equal_test.go:12
Function
TestErrors
!-Eval * //!+output sqrt(A / pi) map[A:87616 pi:3.141592653589793] => 167 pow(x, 3) + pow(y, 3) map[x:12 y:1] => 1729 map[x:9 y:10] => 1729 5 / 9
ch7/eval/eval_test.go:78
Function
TestEval
!+Eval
ch7/eval/eval_test.go:13
Function
TestFrenchPalindrome
!-test The tests below are expected to fail. See package gopl.io/ch11/word2 for the fix. !+more
ch11/word1/word_test.go:30
Function
TestIsPalindrome
!-bench !+test
ch11/word2/word_test.go:19
Function
TestNonPalindrome
(t *testing.T)
ch11/word1/word_test.go:18
Function
TestPalindrome
(t *testing.T)
ch11/word1/word_test.go:9
Function
TestRandomPalindromes
(t *testing.T)
ch11/word2/word_test.go:89
Function
TestSort
(t *testing.T)
ch4/treesort/sort_test.go:14
Function
acos
!- Some other interesting functions:
ch3/mandelbrot/main.go:55
Function
appendslice
(x []int, y ...int)
ch4/append/main.go:11
Function
counter
counter echoes the number of calls so far.
ch1/server2/main.go:35
Function
crawl
!-breadthFirst !+crawl
ch5/findlinks3/findlinks.go:38
Function
daysAgo
!-template !+daysAgo
ch4/issuesreport/main.go:30
Function
endElement
(n *html.Node)
ch5/outline2/outline.go:73
Function
handler
!+handler handler echoes the HTTP request.
ch1/server3/main.go:22
← previous
next →
201–300 of 421, ranked by callers