Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekbanas/Go-Tutorial
/ functions
Functions
56 in github.com/derekbanas/Go-Tutorial
⨍
Functions
56
◇
Types & classes
13
↓ 8 callers
Function
errorCheck
(err error)
webapp/webapp.go:19
↓ 3 callers
Function
IsEmail
(s string)
app2/testemail.go:8
↓ 3 callers
Method
Year
()
app/mypackage/mypackage.go:62
↓ 3 callers
Function
write
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 callers
Method
Day
Getter functions return the values
app/mypackage/mypackage.go:56
↓ 2 callers
Method
Month
()
app/mypackage/mypackage.go:59
↓ 2 callers
Function
getSumGen
(x T, y T)
hellogo.go:118
↓ 1 callers
Method
AngrySound
()
hellogo.go:190
↓ 1 callers
Method
Area
()
hellogo.go:134
↓ 1 callers
Method
Attack
()
hellogo.go:198
↓ 1 callers
Method
GetBalance
()
hellogo.go:250
↓ 1 callers
Method
Name
Return the cats name with a type conversion
hellogo.go:203
↓ 1 callers
Method
SetDay
Create a setter function for the values Make sure all values are valid or return an error message
app/mypackage/mypackage.go:33
↓ 1 callers
Method
SetMonth
(m int)
app/mypackage/mypackage.go:40
↓ 1 callers
Method
SetYear
(y int)
app/mypackage/mypackage.go:47
↓ 1 callers
Function
TBToML
(tbs TBs)
hellogo.go:176
↓ 1 callers
Method
ToMLs
Associate method with types
hellogo.go:181
↓ 1 callers
Method
Withdraw
(v int)
hellogo.go:256
↓ 1 callers
Function
changeVal
(f3 int)
hellogo.go:78
↓ 1 callers
Function
changeVal2
(myPtr *int)
hellogo.go:83
↓ 1 callers
Function
dblArrVals
Receives array by reference and doubles values
hellogo.go:88
↓ 1 callers
Function
factorial
----- RECURSION -----
hellogo.go:279
↓ 1 callers
Function
getArraySum
(arr []int)
hellogo.go:70
↓ 1 callers
Function
getAverage
(nums ...float64)
hellogo.go:94
↓ 1 callers
Function
getCustInfo
Customer passed as values
hellogo.go:139
↓ 1 callers
Function
getQuotient
Return potential error
hellogo.go:48
↓ 1 callers
Function
getStrings
Retreives lines of text from a file
webapp/webapp.go:75
↓ 1 callers
Function
getSum
Returns sum of values
hellogo.go:38
↓ 1 callers
Function
getSum2
Variadic function
hellogo.go:60
↓ 1 callers
Function
getTwo
Return multiple values
hellogo.go:43
↓ 1 callers
Method
info
()
hellogo.go:160
↓ 1 callers
Function
newCustAdd
(c *customer, address string)
hellogo.go:143
↓ 1 callers
Function
nums1
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 callers
Function
nums2
(channel chan int)
hellogo.go:235
↓ 1 callers
Function
printTo10
()
hellogo.go:220
↓ 1 callers
Function
printTo15
----- CONCURRENCY -----
hellogo.go:215
↓ 1 callers
Function
sayHello
* I'm a block comment */ ----- FUNCTIONS -----
hellogo.go:33
↓ 1 callers
Function
tspToML
Convert with functions (Bad Way)
hellogo.go:172
↓ 1 callers
Function
useFunc
----- CLOSURES ----- Pass a function to a function
hellogo.go:270
Method
AngrySound
()
hellogo.go:207
Method
HappySound
()
hellogo.go:191
Method
HappySound
()
hellogo.go:210
Function
IntArrToStrArr
Function name is uppercase so it can be exported
app/mypackage/mypackage.go:12
Function
TestIsEmail
(t *testing.T)
app2/testemail_test.go:7
Method
ToMLs
()
hellogo.go:184
Function
createHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:108
Function
englishHandler
request is the request from the browser
webapp/webapp.go:36
Function
frenchHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:46
Function
interactHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:51
Function
main
()
cltest.go:9
Function
main
When a Go program executes it executes a function named main Go statements don't require semicolons
hellogo.go:289
Function
main
()
app/main.go:12
Function
main
()
webapp/webapp.go:128
Function
newHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:98
Function
spanishHandler
(writer http.ResponseWriter, request *http.Request)
webapp/webapp.go:41
Function
sumVals
(x, y int)
hellogo.go:274