Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekbanas/Go-Tutorial
/ types & classes
Types & classes
13 in github.com/derekbanas/Go-Tutorial
⨍
Functions
56
◇
Types & classes
13
↓ 6 callers
TypeAlias
ML
hellogo.go:169
↓ 6 callers
TypeAlias
Tsp
----- DEFINED TYPES ----- I'll define different cooking measurement types so we can do conversions
hellogo.go:167
↓ 1 callers
TypeAlias
Cat
Define type with interface methods and its own method
hellogo.go:196
↓ 1 callers
TypeAlias
TBs
hellogo.go:168
Struct
Account
----- BANK ACCOUNT EXAMPLE ----- Here I'll simulate customers accessing a bank account and lock out customers to allow for individual access
hellogo.go:245
Interface
Animal
----- INTERFACES -----
hellogo.go:189
Struct
Date
We capitalize what we want to export and use lowercase on what we don't. We don't want the user to be able to access day, month, year directly
app/mypackage/mypackage.go:24
Interface
MyConstraint
----- FUNCTION THAT EXCEPTS GENERICS ----- This generic type parameter is capital, between square brackets and has a rule for what data it will except
hellogo.go:114
Struct
ToDoList
webapp/webapp.go:14
Struct
business
hellogo.go:154
Struct
contact
Struct composition : Putting a struct in another
hellogo.go:148
Struct
customer
----- STRUCTS -----
hellogo.go:123
Struct
rectangle
This struct has a function associated
hellogo.go:130