Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yashsharma1911/Golang-tutorial
/ functions
Functions
39 in github.com/Yashsharma1911/Golang-tutorial
⨍
Functions
39
◇
Types & classes
3
↓ 3 callers
Function
appendString
(s string)
Mutex/main.go:29
↓ 3 callers
Function
checkNilErr
(err error)
File/main.go:37
↓ 2 callers
Method
getName
Methods Methods are functions with a special receiver argument the method contains a receiver argument in it. With the help of the receiver argument,
Methods/1-Create_Methods/main.go:19
↓ 2 callers
Function
greeter
this function will basically greet a person.
Goroutines/main.go:19
↓ 1 callers
Function
GetFirstNames
()
Projects/01 Beginner Projects/bookingapp/main.go:104
↓ 1 callers
Function
GetUserInput
Func to take data from user
Projects/01 Beginner Projects/bookingapp/main.go:83
↓ 1 callers
Function
GreetUsers
()
Projects/01 Beginner Projects/bookingapp/main.go:77
↓ 1 callers
Function
SendTicket
(NoOfTickets uint, firstname string, lastname string, email string)
Projects/01 Beginner Projects/bookingapp/main.go:114
↓ 1 callers
Function
ValidateUserInput
(firstname string, lastname string, NoOfTickets uint, email string)
Projects/01 Beginner Projects/bookingapp/main.go:69
↓ 1 callers
Function
createAccount
(collection *mongo.Collection, ctx context.Context, data map[string]interface{})
Projects/02 Intermediate Projects/CRUD-server/create_account.go:9
↓ 1 callers
Function
deleteAccount
(collection *mongo.Collection, ctx context.Context, data map[string]interface{})
Projects/02 Intermediate Projects/CRUD-server/delete_account.go:11
↓ 1 callers
Function
getAccounts
(collection *mongo.Collection, ctx context.Context)
Projects/02 Intermediate Projects/CRUD-server/get_accounts.go:11
↓ 1 callers
Function
readFile
(path string)
File/main.go:43
↓ 1 callers
Function
statusCode
(site string)
WaitGroups/main.go:31
↓ 1 callers
Function
updateAccount
(collection *mongo.Collection, ctx context.Context, data map[string]interface{})
Projects/02 Intermediate Projects/CRUD-server/update_account.go:11
Function
accountsHandler
(w http.ResponseWriter, r *http.Request)
Projects/02 Intermediate Projects/CRUD-server/main.go:23
Function
main
()
main.go:9
Function
main
()
Time/main.go:8
Function
main
()
Projects/02 Intermediate Projects/basic-go-server/main.go:8
Function
main
()
Projects/02 Intermediate Projects/CRUD-server/main.go:18
Function
main
()
Projects/01 Beginner Projects/bookingapp/main.go:26
Function
main
functions function is a block of code that is used to perform a specific task syntax * func functionName(parameterName type) returnType { // code
Function/main.go:66
Function
main
()
If-else/main.go:5
Function
main
()
Conversions/main.go:11
Function
main
this should be pointer but we are not using it as pointer now.
WaitGroups/main.go:13
Function
main
()
Mutex/main.go:12
Function
main
()
Struct/main.go:5
Function
main
()
Maps/main.go:5
Function
main
()
Goroutines/raceCondition.go:8
Function
main
()
Goroutines/main.go:8
Function
main
()
File/main.go:11
Function
main
()
Array/main.go:7
Function
main
()
Slices/main.go:8
Function
main
()
Pointers/main.go:5
Function
main
()
Methods/1-Create_Methods/main.go:23
Function
main
Defer keyword The defer keyword is used to delay the execution of a function until the surrounding function returns. The defer works on first in last
Methods/2-Defer_keyword/main.go:13
Function
main
()
Switch_Statement/main.go:9
Function
main
()
Loops/main.go:5
Function
main
()
1-Hello_World 👋/main.go:5