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
↓ 52 callers
Method
Close
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memo5/memo.go:54
↓ 34 callers
Method
Error
()
code_samples/006-error-handling/07-custom-errors/05_custom-type/main.go:14
↓ 29 callers
Method
Add
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 callers
Method
Get
(key string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memotest/memotest.go:55
↓ 20 callers
Function
Display
!+Display
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/display/display.go:17
↓ 20 callers
Method
Error
()
code_samples_es/006-error-handling/07-custom-errors/05_custom-type/main.go:14
↓ 18 callers
Method
String
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/http4/main.go:29
↓ 17 callers
Method
Eval
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 callers
Method
Len
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:69
↓ 10 callers
Function
Equal
!- !+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 callers
Method
next
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:21
↓ 8 callers
Function
hasEdge
(from, to string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/graph/main.go:23
↓ 8 callers
Method
next
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:43
↓ 7 callers
Method
Check
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 callers
Method
Set
(s string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/tempconv/tempconv.go:38
↓ 7 callers
Method
text
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:44
↓ 6 callers
Method
Work
Work runs the simulation 'runs' times.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/cake/cake.go:71
↓ 6 callers
Function
f
(x int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch5/defer1/defer.go:16
↓ 6 callers
Function
read
!-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 callers
Function
IsPalindrome
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 callers
Function
IsPalindrome
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 callers
Method
begin
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:55
↓ 5 callers
Method
end
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:64
↓ 5 callers
Function
reverse
!+rev reverse reverses a slice of ints in place.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/rev/main.go:54
↓ 5 callers
Method
space
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:79
↓ 5 callers
Method
string
(str string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:41
↓ 4 callers
Function
IsPalindrome
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 callers
Function
IsPalindrome
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 callers
Method
String
!-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 callers
Method
Write
!- !+write
code_samples/011-code-samples/02-donovan-kernighan/temp/ch13/bzip/bzip2.go:64
↓ 4 callers
Function
addEdge
(from, to string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch4/graph/main.go:14
↓ 4 callers
Method
consume
(want rune)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:46
↓ 4 callers
Function
corner
(i, j int)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/surface/main.go:43
↓ 4 callers
Function
corner
sin(30°), cos(30°)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/surface/surface.go:34
↓ 4 callers
Function
endList
(lex *lexer)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/decode.go:152
↓ 4 callers
Function
length
(s string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:33
↓ 4 callers
Function
myAdd
(xi ...int)
code_samples_es/009-testing/01-test/02/main.go:10
↓ 4 callers
Function
myAdd
(xi ...int)
code_samples/009-testing/01-test/02/main.go:10
↓ 4 callers
Function
mySum
(xi ...int)
code_samples_es/009-testing/01-test/01/main.go:11
↓ 4 callers
Function
mySum
(xi ...int)
code_samples_es/009-testing/02-table-test/01/main.go:11
↓ 4 callers
Function
mySum
(xi ...int)
code_samples/009-testing/01-test/01/main.go:11
↓ 4 callers
Function
mySum
(xi ...int)
code_samples/009-testing/02-table-test/01/main.go:11
↓ 4 callers
Function
printTracks
!-main !+printTracks
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/sorting/main.go:44
↓ 4 callers
Function
sum
!+
code_samples/011-code-samples/02-donovan-kernighan/temp/ch5/sum/main.go:12
↓ 4 callers
Method
text
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:22
↓ 3 callers
Function
Cat
(xs []string)
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main.go:5
↓ 3 callers
Function
Cat
(xs []string)
code_samples/009-testing/04-benchmark/03-cat/mystr/main.go:5
↓ 3 callers
Function
CenteredAvg
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 callers
Function
CenteredAvg
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 callers
Function
Count
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 callers
Function
Count
Count returns the number of words in a string.
code_samples/010-ninja-level-thirteen/02/02-code-finished/word/main.go:17
↓ 3 callers
Method
Distance
!-decl
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/coloredpoint/main.go:26
↓ 3 callers
Function
Greet
(s string)
code_samples_es/009-testing/04-benchmark/01-greet/main.go:9
↓ 3 callers
Function
Greet
(s string)
code_samples_es/009-testing/04-benchmark/02-greet/mystr/main.go:5
↓ 3 callers
Function
Greet
(s string)
code_samples_es/009-testing/04-benchmark/00-live/saying/main.go:5
↓ 3 callers
Function
Greet
(s string)
code_samples/009-testing/04-benchmark/01-greet/main.go:9
↓ 3 callers
Function
Greet
(s string)
code_samples/009-testing/04-benchmark/02-greet/mystr/main.go:5
↓ 3 callers
Function
Greet
(s string)
code_samples/009-testing/04-benchmark/00-live/saying/main.go:5
↓ 3 callers
Function
IsUp
!+
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/netflag/netflag.go:15
↓ 3 callers
Function
Join
(xs []string)
code_samples_es/009-testing/04-benchmark/03-cat/mystr/main.go:14
↓ 3 callers
Function
Join
(xs []string)
code_samples/009-testing/04-benchmark/03-cat/mystr/main.go:14
↓ 3 callers
Function
Parse
---- 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 callers
Method
ScaleBy
(factor float64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch6/coloredpoint/main.go:32
↓ 3 callers
Function
Years
Years converts human years to dog years.
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main.go:5
↓ 3 callers
Function
Years
Years converts human years to dog years.
code_samples/010-ninja-level-thirteen/01/finished/dog/main.go:5
↓ 3 callers
Function
YearsTwo
YearsTwo converts human years to dog years.
code_samples_es/010-ninja-level-thirteen/01/finished/dog/main.go:10
↓ 3 callers
Function
YearsTwo
YearsTwo converts human years to dog years.
code_samples/010-ninja-level-thirteen/01/finished/dog/main.go:10
↓ 3 callers
Method
describe
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 callers
Function
f
(x, y float64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch3/surface/main.go:57
↓ 3 callers
Function
myAdd
(xi ...int)
code_samples_es/009-testing/02-table-test/02/main.go:10
↓ 3 callers
Function
myAdd
(xi ...int)
code_samples/009-testing/02-table-test/02/main.go:10
↓ 3 callers
Function
parseExpr
(lex *lexer)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:82
↓ 3 callers
Method
stringf
(format string, args ...interface{})
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:110
↓ 3 callers
Function
work
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 callers
Method
Close
!-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 callers
Method
Has
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 callers
Function
Sum
Sum adds an unlimited number of values of type int.
code_samples_es/009-testing/03-examples/02/mymathtwo/main.go:5
↓ 2 callers
Function
Sum
Sum adds an unlimited number of values of type int.
code_samples/009-testing/03-examples/02/mymathtwo/main.go:5
↓ 2 callers
Function
UseCount
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 callers
Function
UseCount
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 callers
Function
echo
(newline bool, sep string, args []string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/echo/echo.go:33
↓ 2 callers
Function
formatAtom
!-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 callers
Function
incomingURLs
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch9/memotest/memotest.go:34
↓ 2 callers
Function
mustCopy
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/netcat2/netcat.go:29
↓ 2 callers
Method
pop
()
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:50
↓ 2 callers
Function
populate
!-Unpack !+populate
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/params/params.go:65
↓ 2 callers
Function
precedence
(op rune)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/eval/parse.go:39
↓ 2 callers
Method
print
(t *token)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch12/sexpr/pretty.go:91
↓ 2 callers
Function
printDiskUsage
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du3/main.go:79
↓ 2 callers
Function
printDiskUsage
!-
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du2/main.go:69
↓ 2 callers
Function
printDiskUsage
(nfiles, nbytes int64)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/du4/main.go:89
↓ 2 callers
Method
speak
()
code_samples/004-ninja-level-nine/02-methods-sets/main.go:10
↓ 1 callers
Function
CheckQuota
(username string)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch11/storage2/storage.go:38
↓ 1 callers
Method
Close
!-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 callers
Function
FToC
(f Fahrenheit)
code_samples/011-code-samples/02-donovan-kernighan/temp/ch7/tempconv/tempconv.go:18
↓ 1 callers
Function
Fib
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 callers
Function
Fib
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 callers
Function
Image
Image returns a thumbnail-size version of src.
code_samples/011-code-samples/02-donovan-kernighan/temp/ch8/thumbnail/thumbnail.go:21
↓ 1 callers
Function
ImageFile2
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 callers
Function
ImageStream
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