MCPcopy Create free account

hub / github.com/derekbanas/Go-Tutorial / functions

Functions56 in github.com/derekbanas/Go-Tutorial

↓ 8 callersFunctionerrorCheck
(err error)
webapp/webapp.go:19
↓ 3 callersFunctionIsEmail
(s string)
app2/testemail.go:8
↓ 3 callersMethodYear
()
app/mypackage/mypackage.go:62
↓ 3 callersFunctionwrite
The writer allows us to write to the browser Create a message and add it to the response that displays in the browser
webapp/webapp.go:29
↓ 2 callersMethodDay
Getter functions return the values
app/mypackage/mypackage.go:56
↓ 2 callersMethodMonth
()
app/mypackage/mypackage.go:59
↓ 2 callersFunctiongetSumGen
(x T, y T)
hellogo.go:118
↓ 1 callersMethodAngrySound
()
hellogo.go:190
↓ 1 callersMethodArea
()
hellogo.go:134
↓ 1 callersMethodAttack
()
hellogo.go:198
↓ 1 callersMethodGetBalance
()
hellogo.go:250
↓ 1 callersMethodName
Return the cats name with a type conversion
hellogo.go:203
↓ 1 callersMethodSetDay
Create a setter function for the values Make sure all values are valid or return an error message
app/mypackage/mypackage.go:33
↓ 1 callersMethodSetMonth
(m int)
app/mypackage/mypackage.go:40
↓ 1 callersMethodSetYear
(y int)
app/mypackage/mypackage.go:47
↓ 1 callersFunctionTBToML
(tbs TBs)
hellogo.go:176
↓ 1 callersMethodToMLs
Associate method with types
hellogo.go:181
↓ 1 callersMethodWithdraw
(v int)
hellogo.go:256
↓ 1 callersFunctionchangeVal
(f3 int)
hellogo.go:78
↓ 1 callersFunctionchangeVal2
(myPtr *int)
hellogo.go:83
↓ 1 callersFunctiondblArrVals
Receives array by reference and doubles values
hellogo.go:88
↓ 1 callersFunctionfactorial
----- RECURSION -----
hellogo.go:279
↓ 1 callersFunctiongetArraySum
(arr []int)
hellogo.go:70
↓ 1 callersFunctiongetAverage
(nums ...float64)
hellogo.go:94
↓ 1 callersFunctiongetCustInfo
Customer passed as values
hellogo.go:139
↓ 1 callersFunctiongetQuotient
Return potential error
hellogo.go:48
↓ 1 callersFunctiongetStrings
Retreives lines of text from a file
webapp/webapp.go:75
↓ 1 callersFunctiongetSum
Returns sum of values
hellogo.go:38
↓ 1 callersFunctiongetSum2
Variadic function
hellogo.go:60
↓ 1 callersFunctiongetTwo
Return multiple values
hellogo.go:43
↓ 1 callersMethodinfo
()
hellogo.go:160
↓ 1 callersFunctionnewCustAdd
(c *customer, address string)
hellogo.go:143
↓ 1 callersFunctionnums1
These functions will print in order using channels Func receives a channel and then sends values over channels once each time it is called
hellogo.go:230
↓ 1 callersFunctionnums2
(channel chan int)
hellogo.go:235
↓ 1 callersFunctionprintTo10
()
hellogo.go:220
↓ 1 callersFunctionprintTo15
----- CONCURRENCY -----
hellogo.go:215
↓ 1 callersFunctionsayHello
* I'm a block comment */ ----- FUNCTIONS -----
hellogo.go:33
↓ 1 callersFunctiontspToML
Convert with functions (Bad Way)
hellogo.go:172
↓ 1 callersFunctionuseFunc
----- CLOSURES ----- Pass a function to a function
hellogo.go:270
MethodAngrySound
()
hellogo.go:207
MethodHappySound
()
hellogo.go:191
MethodHappySound
()
hellogo.go:210
FunctionIntArrToStrArr
Function name is uppercase so it can be exported
app/mypackage/mypackage.go:12
FunctionTestIsEmail
(t *testing.T)
app2/testemail_test.go:7
MethodToMLs
()
hellogo.go:184
FunctioncreateHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:108
FunctionenglishHandler
request is the request from the browser
webapp/webapp.go:36
FunctionfrenchHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:46
FunctioninteractHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:51
Functionmain
()
cltest.go:9
Functionmain
When a Go program executes it executes a function named main Go statements don't require semicolons
hellogo.go:289
Functionmain
()
app/main.go:12
Functionmain
()
webapp/webapp.go:128
FunctionnewHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:98
FunctionspanishHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:41
FunctionsumVals
(x, y int)
hellogo.go:274