-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
61 lines (42 loc) · 1.18 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
54
55
56
57
58
59
60
61
package main
import "practice/textsearch"
//"practice/tinycompiler"
//pb "practice/grpc/hello_world"
//"google.golang.org/grpc"
//aoc "practice/adventofcode/day10"
//websockets "practice/websockets"
//cards "practice/cards"
//sc "practice/story_colab"
//server "practice/grpc/server"
//import watcher "practice/snippets"
//const address string = ":4772"
func main() {
/*
myset1 := snippets.NewSet()
myset1.AddMulti([]string{"a", "b", "c", "d"})
myset2 := snippets.NewSet()
myset2.AddMulti([]string{"e", "f", "g", "d"})
inter := myset1.Intersection(myset2)
inter.Display()
union := myset1.Union(myset2)
union.Display()
diff := myset1.Difference(myset2)
diff.Display()
//aoc.SecondPart()
log.Println("Starting the server!")
lis, err := net.Listen("tcp", address)
if err != nil {
log.Fatal("Failed to Listen on", err)
}
log.Println("Listening on", address)
grpcServer := grpc.NewServer()
//register your server
pb.RegisterGreeterServer(grpcServer, &server.HelloServer{})
if err := grpcServer.Serve(lis); err != nil {
log.Fatalf("failed to serve: %v", err)
}
*/
// tinycompiler.StartHere()
textsearch.TextSearch()
// snippets.Prims()
}