-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
53 lines (41 loc) · 1.73 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package main
import concurrency "github.com/SudeepthaG/golearn/Concurrency"
// pointersstructsmethods "github.com/SudeepthaG/golearn/PointersStructsMethods"
// mapsstrings "github.com/SudeepthaG/golearn/MapsStrings"
// helloworld "github.com/SudeepthaG/golearn/HelloWorld"
// variablesconstantstypes "github.com/SudeepthaG/golearn/VariablesConstantsTypes"
func main() {
// fmt.Println(helloworld.Hello())
// fmt.Println(variablesconstantstypes.VariablesFunc())
// fmt.Println(variablesconstantstypes.ConstantsFunc())
// fmt.Println(functionspackages.FunctionUsage())
// fmt.Println(mapsstrings.Maps())
// mapsstrings.Maps() //if there was no return
// mapsstrings.Summain()
// mapsstrings.StringPractice()
// pointersstructsmethods.PointersPractice() //even if there is a return you can call func without assignig or printing the return
// fmt.Println(pointersstructsmethods.StructsPractice())
// spec := pointersstructsmethods.Spec{
// Maker: "apple",
// Price: 50000,
// }
// fmt.Println("Maker:", spec.Maker)
// fmt.Println("Price:", spec.Price)
// fmt.Println(pointersstructsmethods.MethodsPractice())
// errorhandling.DeferPractice()
// errorhandling.ErrorBasicsPractice()
// errorhandling.CustomErrorsPractice()
// errorhandling.PanicRecoveryPractice()
// firstclassfunctions.FistClassFunctionsPractice()
// filehandling.ReadingFilesPractice()
// filehandling.WritingFileSPractice()
// reflectionpractice.ReflectionPractice()
// interfaces.InterfacesPractice()
// interfaces.InterFacesContinuePractice()
// concurrency.GoroutinesBasics()
// concurrency.ChannelsBasics()
// concurrency.BufferedChannelsBasics()
concurrency.WaitGroupWorkerPoolBasics()
// concurrency.SelectBasics()
// concurrency.MutexBasics()
}