Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Soypete/Production-Go-Examples
/ functions
Functions
77 in github.com/Soypete/Production-Go-Examples
⨍
Functions
77
◇
Types & classes
12
↓ 4 callers
Function
benchmarkWorkers
(i int, b *testing.B)
exercise-3/worker_test.go:12
↓ 4 callers
Function
benchmarkWorkers
(i int, b *testing.B)
exercise-3/solution/worker_test.go:13
↓ 2 callers
Method
Do
(string)
quiz-questions/question6/main.go:12
↓ 2 callers
Method
GetWebPage
(url string)
archived/linter/main.go:73
↓ 2 callers
Function
cleanHTMLReactScriptTag
(s string)
archived/linter/main.go:31
↓ 2 callers
Method
queueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-3/solution/main.go:53
↓ 2 callers
Method
run
()
exercise-3/solution/main.go:25
↓ 1 callers
Method
GetMeetupInfo
(url string)
archived/linter/main.go:97
↓ 1 callers
Function
GetMeetupsURLs
(body []byte)
archived/linter/main.go:37
↓ 1 callers
Method
GetProPage
()
archived/linter/main.go:66
↓ 1 callers
Function
Setup
()
archived/linter/main.go:56
↓ 1 callers
Function
detectWords
()
exercise-1/main.go:18
↓ 1 callers
Function
detectWords
()
exercise-1/solution/main.go:19
↓ 1 callers
Method
detectWords
()
exercise-3/main.go:64
↓ 1 callers
Method
detectWords
()
exercise-3/solution/main.go:64
↓ 1 callers
Method
detectWords
()
exercise-2/solution/main.go:64
↓ 1 callers
Method
detectWords
()
archived/ex-2-channels-routines/main.go:47
↓ 1 callers
Method
detectWords
()
archived/ex-3-memory-sketch/solution/main.go:61
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
exercise-3/main.go:46
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
exercise-3/solution/main.go:46
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
exercise-2/main.go:32
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
exercise-2/solution/main.go:46
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
archived/ex-2-channels-routines/main.go:28
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
archived/ex-2-channels-routines/solution/main.go:40
↓ 1 callers
Function
getMessages
getMessages gets a slice of messages to process
archived/ex-3-memory-sketch/solution/main.go:43
↓ 1 callers
Function
getMovies
(age int)
quiz-questions/question8/main.go:17
↓ 1 callers
Function
getWords
getWords gets a slice of messages to process
exercise-1/main.go:12
↓ 1 callers
Function
getWords
getWords gets a slice of messages to process
exercise-1/solution/main.go:13
↓ 1 callers
Method
queueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-3/main.go:53
↓ 1 callers
Method
queueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-2/main.go:39
↓ 1 callers
Method
queueMessages
this will block and not close if the len(msgs) is larger than the channel buffer.
exercise-2/solution/main.go:53
↓ 1 callers
Method
queueMessages
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 callers
Method
queueMessages
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 callers
Method
queueMessages
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 callers
Method
run
()
exercise-3/main.go:25
↓ 1 callers
Method
run
()
exercise-2/main.go:25
↓ 1 callers
Method
run
()
exercise-2/solution/main.go:25
↓ 1 callers
Method
run
()
archived/ex-2-channels-routines/main.go:19
↓ 1 callers
Method
run
()
archived/ex-2-channels-routines/solution/main.go:19
↓ 1 callers
Method
run
()
archived/ex-3-memory-sketch/solution/main.go:22
↓ 1 callers
Function
runPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-3/main.go:81
↓ 1 callers
Function
runPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-3/solution/main.go:81
↓ 1 callers
Function
runPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-2/main.go:67
↓ 1 callers
Function
runPprof
export cpu and mem profiles to a file that can be processed by pprof tool
exercise-2/solution/main.go:81
Function
Benchmark10Workers
(b *testing.B)
exercise-3/worker_test.go:9
Function
Benchmark10Workers
(b *testing.B)
exercise-3/solution/worker_test.go:10
Function
Benchmark20Workers
(b *testing.B)
exercise-3/worker_test.go:10
Function
Benchmark20Workers
(b *testing.B)
exercise-3/solution/worker_test.go:11
Function
Benchmark2Workers
(b *testing.B)
exercise-3/worker_test.go:7
Function
Benchmark2Workers
(b *testing.B)
exercise-3/solution/worker_test.go:8
Function
Benchmark5Workers
(b *testing.B)
exercise-3/worker_test.go:8
Function
Benchmark5Workers
(b *testing.B)
exercise-3/solution/worker_test.go:9
Method
Do
(printThis string)
quiz-questions/question6/main.go:7
Method
detectWords
()
exercise-2/main.go:50
Function
healthCheck
(w http.ResponseWriter, r *http.Request)
archived/linter/main.go:140
Function
main
()
exercise-3/main.go:112
Function
main
()
exercise-3/solution/main.go:112
Function
main
()
exercise-1/main.go:35
Function
main
()
exercise-1/solution/main.go:34
Function
main
()
exercise-2/main.go:98
Function
main
()
exercise-2/solution/main.go:112
Function
main
()
archived/ex-2-channels-routines/main.go:62
Function
main
()
archived/ex-2-channels-routines/solution/main.go:74
Function
main
()
archived/linter/main.go:149
Function
main
()
archived/ex-3-memory-sketch/solution/main.go:79
Function
main
()
quiz-questions/question7/main.go:5
Function
main
()
quiz-questions/question4/main.go:5
Function
main
()
quiz-questions/question8/main.go:34
Function
main
https://go.dev/play/p/NhkljNuluRO credit to @morgahl_ from twitch
quiz-questions/question3/main.go:9
Function
main
()
quiz-questions/question5/main.go:5
Function
main
example stolen from blog post: https://yourbasic.org/golang/gotcha-data-race-closure/
quiz-questions/question9/main.go:9
Function
main
credit to @jnewmano https://go.dev/play/p/aPa-M0u2CSV
quiz-questions/question10/main.go:6
Function
main
()
quiz-questions/question6/main.go:15
Function
main
()
quiz-questions/question2/main.go:5
Function
main
()
quiz-questions/question1/main.go:5
Function
runCrawler
(w http.ResponseWriter, r *http.Request)
archived/linter/main.go:118
Function
wrapError
(err error)
quiz-questions/question8/main.go:7