MCPcopy Create free account

hub / github.com/GoesToEleven/go-programming / functions

Functions692 in github.com/GoesToEleven/go-programming

↓ 52 callersMethodClose
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo.go:54
↓ 34 callersMethodError
()
code_samples/006-error-handling/07-custom-errors/05_custom-type/main.go:14
↓ 29 callersMethodAdd
Add adds the non-negative value x to the set.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/intset/intset.go:29
↓ 24 callersMethodGet
(key string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memotest/memotest.go:55
↓ 20 callersFunctionDisplay
!+Display
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display.go:17
↓ 20 callersMethodError
()
code_samples_es/006-error-handling/07-custom-errors/05_custom-type/main.go:14
↓ 18 callersMethodString
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http4/main.go:29
↓ 17 callersMethodEval
Eval returns the value of this Expr in the environment env.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/ast.go:9
↓ 11 callersMethodLen
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:69
↓ 10 callersFunctionEqual
!- !+comparison Equal reports whether x and y are deeply equal. !-comparison Map keys are always compared with ==, not deeply. (This matters for keys
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/equal/equal.go:117
↓ 10 callersMethodnext
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:21
↓ 8 callersFunctionhasEdge
(from, to string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/graph/main.go:23
↓ 8 callersMethodnext
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:43
↓ 7 callersMethodCheck
Check reports errors in this Expr and adds its Vars to the set.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/ast.go:11
↓ 7 callersMethodSet
(s string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/tempconv/tempconv.go:38
↓ 7 callersMethodtext
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:44
↓ 6 callersMethodWork
Work runs the simulation 'runs' times.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/cake/cake.go:71
↓ 6 callersFunctionf
(x int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch5/defer1/defer.go:16
↓ 6 callersFunctionread
!-lexer The read function is a decoder for a small subset of well-formed S-expressions. For brevity of our example, it takes many dubious shortcuts.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:77
↓ 5 callersFunctionIsPalindrome
IsPalindrome reports whether s reads the same forward and backward. (Our first attempt.)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/word1/word.go:12
↓ 5 callersFunctionIsPalindrome
IsPalindrome reports whether s reads the same forward and backward. Letter case is ignored, as are non-letters.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/word2/word.go:14
↓ 5 callersMethodbegin
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:55
↓ 5 callersMethodend
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:64
↓ 5 callersFunctionreverse
!+rev reverse reverses a slice of ints in place.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/rev/main.go:54
↓ 5 callersMethodspace
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:79
↓ 5 callersMethodstring
(str string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:41
↓ 4 callersFunctionIsPalindrome
IsPalidrome reports whether s reads the same forward and backward.
code_samples_es/011-code-samples/02-donovan-kernighan/11-testing/01/word/word.go:5
↓ 4 callersFunctionIsPalindrome
IsPalidrome reports whether s reads the same forward and backward.
code_samples/011-code-samples/02-donovan-kernighan/11-testing/01/word/word.go:5
↓ 4 callersMethodString
!-intset !+string String returns the set as a string of the form "{1 2 3}".
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/intset/intset.go:53
↓ 4 callersMethodWrite
!- !+write
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip/bzip2.go:64
↓ 4 callersFunctionaddEdge
(from, to string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/graph/main.go:14
↓ 4 callersMethodconsume
(want rune)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:46
↓ 4 callersFunctioncorner
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/surface/main.go:43
↓ 4 callersFunctioncorner
sin(30°), cos(30°)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/surface/surface.go:34
↓ 4 callersFunctionendList
(lex *lexer)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:152
↓ 4 callersFunctionlength
(s string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:33
↓ 4 callersFunctionmyAdd
(xi ...int)
code_samples_es/009-testing/01-test/02/main.go:10
↓ 4 callersFunctionmyAdd
(xi ...int)
code_samples/009-testing/01-test/02/main.go:10
↓ 4 callersFunctionmySum
(xi ...int)
code_samples_es/009-testing/01-test/01/main.go:11
↓ 4 callersFunctionmySum
(xi ...int)
code_samples_es/009-testing/02-table-test/01/main.go:11
↓ 4 callersFunctionmySum
(xi ...int)
code_samples/009-testing/01-test/01/main.go:11
↓ 4 callersFunctionmySum
(xi ...int)
code_samples/009-testing/02-table-test/01/main.go:11
↓ 4 callersFunctionprintTracks
!-main !+printTracks
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:44
↓ 4 callersFunctionsum
!+
code_samples/011-code-samples/02-donovan-kernighan/temp/ch5/sum/main.go:12
↓ 4 callersMethodtext
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:22
↓ 3 callersFunctionCat
(xs []string)
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main.go:5
↓ 3 callersFunctionCat
(xs []string)
code_samples/009-testing/04-benchmark/03-cat/mystr/main.go:5
↓ 3 callersFunctionCenteredAvg
CenteredAvg computes the average of a list of numbers after removing the largest and smallest values.
code_samples_es/010-ninja-level-thirteen/03/02-code-finished/mymath/main.go:8
↓ 3 callersFunctionCenteredAvg
CenteredAvg computes the average of a list of numbers after removing the largest and smallest values.
code_samples/010-ninja-level-thirteen/03/02-code-finished/mymath/main.go:8
↓ 3 callersFunctionCount
Count returns the number of words in a string.
code_samples_es/010-ninja-level-thirteen/02/02-code-finished/word/main.go:17
↓ 3 callersFunctionCount
Count returns the number of words in a string.
code_samples/010-ninja-level-thirteen/02/02-code-finished/word/main.go:17
↓ 3 callersMethodDistance
!-decl
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/coloredpoint/main.go:26
↓ 3 callersFunctionGreet
(s string)
code_samples_es/009-testing/04-benchmark/01-greet/main.go:9
↓ 3 callersFunctionGreet
(s string)
code_samples_es/009-testing/04-benchmark/02-greet/mystr/main.go:5
↓ 3 callersFunctionGreet
(s string)
code_samples_es/009-testing/04-benchmark/00-live/saying/main.go:5
↓ 3 callersFunctionGreet
(s string)
code_samples/009-testing/04-benchmark/01-greet/main.go:9
↓ 3 callersFunctionGreet
(s string)
code_samples/009-testing/04-benchmark/02-greet/mystr/main.go:5
↓ 3 callersFunctionGreet
(s string)
code_samples/009-testing/04-benchmark/00-live/saying/main.go:5
↓ 3 callersFunctionIsUp
!+
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/netflag/netflag.go:15
↓ 3 callersFunctionJoin
(xs []string)
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main.go:14
↓ 3 callersFunctionJoin
(xs []string)
code_samples/009-testing/04-benchmark/03-cat/mystr/main.go:14
↓ 3 callersFunctionParse
---- parser ---- Parse parses the input string as an arithmetic expression. expr = num a literal number, e.g., 3.14159 | id
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:59
↓ 3 callersMethodScaleBy
(factor float64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/coloredpoint/main.go:32
↓ 3 callersFunctionYears
Years converts human years to dog years.
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main.go:5
↓ 3 callersFunctionYears
Years converts human years to dog years.
code_samples/010-ninja-level-thirteen/01/finished/dog/main.go:5
↓ 3 callersFunctionYearsTwo
YearsTwo converts human years to dog years.
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main.go:10
↓ 3 callersFunctionYearsTwo
YearsTwo converts human years to dog years.
code_samples/010-ninja-level-thirteen/01/finished/dog/main.go:10
↓ 3 callersMethoddescribe
describe returns a string describing the current token, for use in errors.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:27
↓ 3 callersFunctionf
(x, y float64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/surface/main.go:57
↓ 3 callersFunctionmyAdd
(xi ...int)
code_samples_es/009-testing/02-table-test/02/main.go:10
↓ 3 callersFunctionmyAdd
(xi ...int)
code_samples/009-testing/02-table-test/02/main.go:10
↓ 3 callersFunctionparseExpr
(lex *lexer)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:82
↓ 3 callersMethodstringf
(format string, args ...interface{})
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:110
↓ 3 callersFunctionwork
work blocks the calling goroutine for a period of time that is normally distributed around d with a standard deviation of stddev.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/cake/cake.go:86
↓ 2 callersMethodClose
!-write !+close Close flushes the compressed data and closes the stream. It does not close the underlying io.Writer.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip/bzip2.go:89
↓ 2 callersMethodHas
Has reports whether the set contains the non-negative value x.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/intset/intset.go:23
↓ 2 callersFunctionSum
Sum adds an unlimited number of values of type int.
code_samples_es/009-testing/03-examples/02/mymathtwo/main.go:5
↓ 2 callersFunctionSum
Sum adds an unlimited number of values of type int.
code_samples/009-testing/03-examples/02/mymathtwo/main.go:5
↓ 2 callersFunctionUseCount
UseCount returns the number of times each word is used in a string.
code_samples_es/010-ninja-level-thirteen/02/02-code-finished/word/main.go:7
↓ 2 callersFunctionUseCount
UseCount returns the number of times each word is used in a string.
code_samples/010-ninja-level-thirteen/02/02-code-finished/word/main.go:7
↓ 2 callersFunctionecho
(newline bool, sep string, args []string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/echo/echo.go:33
↓ 2 callersFunctionformatAtom
!-Display formatAtom formats a value without inspecting its internal structure. It is a copy of the the function in gopl.io/ch11/format.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display.go:26
↓ 2 callersFunctionincomingURLs
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memotest/memotest.go:34
↓ 2 callersFunctionmustCopy
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/netcat2/netcat.go:29
↓ 2 callersMethodpop
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:50
↓ 2 callersFunctionpopulate
!-Unpack !+populate
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/params/params.go:65
↓ 2 callersFunctionprecedence
(op rune)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:39
↓ 2 callersMethodprint
(t *token)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:91
↓ 2 callersFunctionprintDiskUsage
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du3/main.go:79
↓ 2 callersFunctionprintDiskUsage
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du2/main.go:69
↓ 2 callersFunctionprintDiskUsage
(nfiles, nbytes int64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du4/main.go:89
↓ 2 callersMethodspeak
()
code_samples/004-ninja-level-nine/02-methods-sets/main.go:10
↓ 1 callersFunctionCheckQuota
(username string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/storage2/storage.go:38
↓ 1 callersMethodClose
!-write !+close Close flushes the compressed data and closes the stream. It does not close the underlying io.Writer.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip-print/bzip2.go:75
↓ 1 callersFunctionFToC
(f Fahrenheit)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/tempconv/tempconv.go:18
↓ 1 callersFunctionFib
Fib returns the nth number in the Fibonacci sequence. Fibonacci sequence adds up the previous two numbers: 0 1 1 2 3 5 8 13 21
code_samples_es/011-code-samples/02-donovan-kernighan/02-structure/01-fibonacci/mymath/mymath.go:6
↓ 1 callersFunctionFib
Fib returns the nth number in the Fibonacci sequence. Fibonacci sequence adds up the previous two numbers: 0 1 1 2 3 5 8 13 21
code_samples/011-code-samples/02-donovan-kernighan/02-structure/01-fibonacci/mymath/mymath.go:6
↓ 1 callersFunctionImage
Image returns a thumbnail-size version of src.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/thumbnail/thumbnail.go:21
↓ 1 callersFunctionImageFile2
ImageFile2 reads an image from infile and writes a thumbnail-size version of it to outfile.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/thumbnail/thumbnail.go:60
↓ 1 callersFunctionImageStream
ImageStream reads an image from r and writes a thumbnail-size version of it to w.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/thumbnail/thumbnail.go:49
next →1–100 of 692, ranked by callers