Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoesToEleven/go-programming
/ functions
Functions
692 in github.com/GoesToEleven/go-programming
⨍
Functions
692
◇
Types & classes
103
Function
ExampleCount
()
code_samples/010-ninja-level-thirteen/02/02-code-finished/word/main_test.go:36
Function
ExampleGreet
()
code_samples_es/009-testing/04-benchmark/02-greet/mystr/main_test.go:15
Function
ExampleGreet
()
code_samples_es/009-testing/04-benchmark/00-live/saying/main_test.go:15
Function
ExampleGreet
()
code_samples/009-testing/04-benchmark/02-greet/mystr/main_test.go:15
Function
ExampleGreet
()
code_samples/009-testing/04-benchmark/00-live/saying/main_test.go:15
Function
ExampleIsPalindrome
!-bench !+example
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/word2/word_test.go:58
Function
ExampleJoin
()
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main_test.go:35
Function
ExampleJoin
()
code_samples/009-testing/04-benchmark/03-cat/mystr/main_test.go:35
Function
ExamplePrintDuration
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/methods/methods_test.go:13
Function
ExamplePrintReplacer
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/methods/methods_test.go:24
Function
ExampleSum
()
code_samples_es/009-testing/03-examples/02/mymathtwo/main_test.go:31
Function
ExampleSum
()
code_samples_es/009-testing/03-examples/01/acdc/main_test.go:5
Function
ExampleSum
()
code_samples/009-testing/03-examples/02/mymathtwo/main_test.go:31
Function
ExampleSum
()
code_samples/009-testing/03-examples/01/acdc/main_test.go:5
Function
ExampleYears
()
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main_test.go:22
Function
ExampleYears
()
code_samples/010-ninja-level-thirteen/01/finished/dog/main_test.go:22
Function
ExampleYearsTwo
()
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main_test.go:28
Function
ExampleYearsTwo
()
code_samples/010-ninja-level-thirteen/01/finished/dog/main_test.go:28
Function
Example_array
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:85
Function
Example_equal
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/equal/equal_test.go:96
Function
Example_equalCycle
()
code_samples/011-code-samples/02-donovan-kernighan/temp/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
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:22
Function
Example_interface
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:68
Function
Example_movie
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:93
Function
Example_nilInterface
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:44
Function
Example_one
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/intset/intset_test.go:8
Function
Example_ptrToInterface
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:52
Function
Example_ptrToInterface2
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:76
Function
Example_slice
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:36
Function
Example_struct
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display_test.go:60
Function
Example_two
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/intset/intset_test.go:33
Function
Extract
Extract makes an HTTP GET request to the specified URL, parses the response as HTML, and returns the links in the HTML document.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch5/links/links.go:19
Function
FToC
(f Fahrenheit)
code_samples_es/011-code-samples/02-donovan-kernighan/02-structure/02-celsius-farenheit/tempconv/tempconv.go:17
Function
FToC
(f Fahrenheit)
code_samples/011-code-samples/02-donovan-kernighan/02-structure/02-celsius-farenheit/tempconv/tempconv.go:17
Function
Format
Format formats an expression as a string. It does not attempt to remove unnecessary parens.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/print.go:13
Method
Get
Get is concurrency-safe.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo2/memo.go:33
Method
Get
(key string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo4/memo.go:38
Method
Get
!+
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo3/memo.go:32
Method
Get
(key string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo.go:47
Method
Get
NOTE: not concurrency-safe!
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo1/memo.go:31
Function
Hello
()
code_samples_es/003-packages/cat/info.go:5
Function
Hello
()
code_samples/003-packages/cat/info.go:5
Function
ImageFile
ImageFile reads an image from infile and writes a thumbnail-size version of it in the same directory. It returns the generated file name, e.g. "foo.th
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/thumbnail/thumbnail.go:82
Method
Len
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:60
Method
Len
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:150
Method
Less
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:61
Method
Less
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:70
Method
Less
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:151
Function
New
(f Func)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo2/memo.go:20
Function
New
(f Func)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo4/memo.go:28
Function
New
(f Func)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo3/memo.go:26
Function
New
New returns a memoization of f. Clients must subsequently call Close.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo.go:41
Function
New
(f Func)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo1/memo.go:26
Function
NewWriter
NewWriter returns a writer for bzip2-compressed streams.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip-print/bzip2.go:36
Function
NewWriter
NewWriter returns a writer for bzip2-compressed streams.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip/bzip2.go:52
Function
Print
!+print Print prints the method set of the value x.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/methods/methods.go:17
Function
SearchIssues
SearchIssues queries the GitHub issue tracker.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/github/search.go:17
Function
Sequential
* //!+seq m := memo.New(httpGetBody) //!-seq */
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memotest/memotest.go:64
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http1/main.go:28
Method
ServeHTTP
!+handler
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http2/main.go:27
Function
Sort
Sort sorts values in place.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/treesort/sort.go:16
Method
String
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http1/main.go:24
Method
String
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http2/main.go:22
Method
String
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http3/main.go:18
Method
String
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/tempconv/tempconv.go:20
Function
Sum
Sum adds an unlimited number of values of type int.
code_samples_es/007-documentation/01/mymath/main.go:5
Function
Sum
Sum adds an unlimited number of values of type int.
code_samples/007-documentation/01/mymath/main.go:5
Method
Swap
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:62
Method
Swap
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:71
Method
Swap
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:152
Function
Test
This test ensures that the program terminates without crashing.
code_samples/011-code-samples/02-donovan-kernighan/temp/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
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/sexpr_test.go:21
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/format/format_test.go:14
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo2/memo_test.go:15
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo4/memo_test.go:15
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo3/memo_test.go:15
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo_test.go:15
Function
Test
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo1/memo_test.go:15
Function
TestBank
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/bank3/bank_test.go:13
Function
TestBank
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/bank2/bank_test.go:13
Function
TestBank
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/bank1/bank_test.go:13
Function
TestBzip2
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip-print/bzip2_test.go:15
Function
TestBzip2
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip/bzip2_test.go:15
Function
TestCanalPalindrome
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/word1/word_test.go:36
Function
TestCat
(t *testing.T)
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main_test.go:9
Function
TestCat
(t *testing.T)
code_samples/009-testing/04-benchmark/03-cat/mystr/main_test.go:9
Function
TestCenteredAvg
(t *testing.T)
code_samples_es/010-ninja-level-thirteen/03/02-code-finished/mymath/main_test.go:8
Function
TestCenteredAvg
(t *testing.T)
code_samples/010-ninja-level-thirteen/03/02-code-finished/mymath/main_test.go:8
Function
TestCheckQuotaNotifiesUser
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/storage2/quota_test.go:12
Function
TestConcurrent
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo2/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo4/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo3/memo_test.go:20
Function
TestConcurrent
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo_test.go:21
Function
TestConcurrent
NOTE: not concurrency-safe! Test fails.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo1/memo_test.go:21
Function
TestCount
(t *testing.T)
code_samples_es/010-ninja-level-thirteen/02/02-code-finished/word/main_test.go:29
Function
TestCount
(t *testing.T)
code_samples/010-ninja-level-thirteen/02/02-code-finished/word/main_test.go:29
Function
TestCoverage
!+TestCoverage
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/coverage_test.go:13
Function
TestEcho
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/echo/echo_test.go:15
Function
TestEqual
(t *testing.T)
code_samples/011-code-samples/02-donovan-kernighan/temp/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
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/eval_test.go:78
← previous
next →
301–400 of 692, ranked by callers