MCPcopy Create free account

hub / github.com/Soypete/Production-Go-Examples / functions

Functions77 in github.com/Soypete/Production-Go-Examples

↓ 4 callersFunctionbenchmarkWorkers
(i int, b *testing.B)
exercise-3/worker_test.go:12
↓ 4 callersFunctionbenchmarkWorkers
(i int, b *testing.B)
exercise-3/solution/worker_test.go:13
↓ 2 callersMethodDo
(string)
quiz-questions/question6/main.go:12
↓ 2 callersMethodGetWebPage
(url string)
archived/linter/main.go:73
↓ 2 callersFunctioncleanHTMLReactScriptTag
(s string)
archived/linter/main.go:31
↓ 2 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-3/solution/main.go:53
↓ 2 callersMethodrun
()
exercise-3/solution/main.go:25
↓ 1 callersMethodGetMeetupInfo
(url string)
archived/linter/main.go:97
↓ 1 callersFunctionGetMeetupsURLs
(body []byte)
archived/linter/main.go:37
↓ 1 callersMethodGetProPage
()
archived/linter/main.go:66
↓ 1 callersFunctionSetup
()
archived/linter/main.go:56
↓ 1 callersFunctiondetectWords
()
exercise-1/main.go:18
↓ 1 callersFunctiondetectWords
()
exercise-1/solution/main.go:19
↓ 1 callersMethoddetectWords
()
exercise-3/main.go:64
↓ 1 callersMethoddetectWords
()
exercise-3/solution/main.go:64
↓ 1 callersMethoddetectWords
()
exercise-2/solution/main.go:64
↓ 1 callersMethoddetectWords
()
archived/ex-2-channels-routines/main.go:47
↓ 1 callersMethoddetectWords
()
archived/ex-3-memory-sketch/solution/main.go:61
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
exercise-3/main.go:46
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
exercise-3/solution/main.go:46
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
exercise-2/main.go:32
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
exercise-2/solution/main.go:46
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
archived/ex-2-channels-routines/main.go:28
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
archived/ex-2-channels-routines/solution/main.go:40
↓ 1 callersFunctiongetMessages
getMessages gets a slice of messages to process
archived/ex-3-memory-sketch/solution/main.go:43
↓ 1 callersFunctiongetMovies
(age int)
quiz-questions/question8/main.go:17
↓ 1 callersFunctiongetWords
getWords gets a slice of messages to process
exercise-1/main.go:12
↓ 1 callersFunctiongetWords
getWords gets a slice of messages to process
exercise-1/solution/main.go:13
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-3/main.go:53
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-2/main.go:39
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-2/solution/main.go:53
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
archived/ex-2-channels-routines/main.go:35
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
archived/ex-2-channels-routines/solution/main.go:47
↓ 1 callersMethodqueueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
archived/ex-3-memory-sketch/solution/main.go:50
↓ 1 callersMethodrun
()
exercise-3/main.go:25
↓ 1 callersMethodrun
()
exercise-2/main.go:25
↓ 1 callersMethodrun
()
exercise-2/solution/main.go:25
↓ 1 callersMethodrun
()
archived/ex-2-channels-routines/main.go:19
↓ 1 callersMethodrun
()
archived/ex-2-channels-routines/solution/main.go:19
↓ 1 callersMethodrun
()
archived/ex-3-memory-sketch/solution/main.go:22
↓ 1 callersFunctionrunPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-3/main.go:81
↓ 1 callersFunctionrunPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-3/solution/main.go:81
↓ 1 callersFunctionrunPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-2/main.go:67
↓ 1 callersFunctionrunPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-2/solution/main.go:81
FunctionBenchmark10Workers
(b *testing.B)
exercise-3/worker_test.go:9
FunctionBenchmark10Workers
(b *testing.B)
exercise-3/solution/worker_test.go:10
FunctionBenchmark20Workers
(b *testing.B)
exercise-3/worker_test.go:10
FunctionBenchmark20Workers
(b *testing.B)
exercise-3/solution/worker_test.go:11
FunctionBenchmark2Workers
(b *testing.B)
exercise-3/worker_test.go:7
FunctionBenchmark2Workers
(b *testing.B)
exercise-3/solution/worker_test.go:8
FunctionBenchmark5Workers
(b *testing.B)
exercise-3/worker_test.go:8
FunctionBenchmark5Workers
(b *testing.B)
exercise-3/solution/worker_test.go:9
MethodDo
(printThis string)
quiz-questions/question6/main.go:7
MethoddetectWords
()
exercise-2/main.go:50
FunctionhealthCheck
(w http.ResponseWriter, r *http.Request)
archived/linter/main.go:140
Functionmain
()
exercise-3/main.go:112
Functionmain
()
exercise-3/solution/main.go:112
Functionmain
()
exercise-1/main.go:35
Functionmain
()
exercise-1/solution/main.go:34
Functionmain
()
exercise-2/main.go:98
Functionmain
()
exercise-2/solution/main.go:112
Functionmain
()
archived/ex-2-channels-routines/main.go:62
Functionmain
()
archived/ex-2-channels-routines/solution/main.go:74
Functionmain
()
archived/linter/main.go:149
Functionmain
()
archived/ex-3-memory-sketch/solution/main.go:79
Functionmain
()
quiz-questions/question7/main.go:5
Functionmain
()
quiz-questions/question4/main.go:5
Functionmain
()
quiz-questions/question8/main.go:34
Functionmain
https://go.dev/play/p/NhkljNuluRO credit to @morgahl_ from twitch
quiz-questions/question3/main.go:9
Functionmain
()
quiz-questions/question5/main.go:5
Functionmain
example stolen from blog post: https://yourbasic.org/golang/gotcha-data-race-closure/
quiz-questions/question9/main.go:9
Functionmain
credit to @jnewmano https://go.dev/play/p/aPa-M0u2CSV
quiz-questions/question10/main.go:6
Functionmain
()
quiz-questions/question6/main.go:15
Functionmain
()
quiz-questions/question2/main.go:5
Functionmain
()
quiz-questions/question1/main.go:5
FunctionrunCrawler
(w http.ResponseWriter, r *http.Request)
archived/linter/main.go:118
FunctionwrapError
(err error)
quiz-questions/question8/main.go:7