From 19c8d52228e6c15e18412004c7863c3ec70ead0b Mon Sep 17 00:00:00 2001 From: Acid Date: Sun, 5 Apr 2026 02:07:41 -0400 Subject: [PATCH] deleted: main.go --- main.go | 72 --------------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 main.go diff --git a/main.go b/main.go deleted file mode 100644 index dee553c..0000000 --- a/main.go +++ /dev/null @@ -1,72 +0,0 @@ -package main - -import ( - linear "datastructures/linear" - "fmt" -) - -func main() { - - testFixedStack() - -} - -func testFixedStack() { - - fixedStack := linear.StackFixed[int](3) - val, err := fixedStack.Pop() - if err != nil { - fmt.Println(err, val) - } - - fixedStack.Push(1) - fixedStack.Push(2) - fixedStack.Push(3) - err = fixedStack.Push(4) - - if err != nil { - fmt.Println(err) - } - - fixedStack.Push(6) - fixedStack.Push(5) - fixedStack.Push(7) - - fmt.Printf("fixedStack: %v\n", fixedStack.Container) -} - -func testStack() { - - que := linear.Stack[int]{} - - que.Container = append(que.Container, 1, 2, 4, 5) - - fmt.Printf("%v\n", que.Container) - que.Push(6) - - x, y := que.Pop() - fmt.Printf("%v %v\n", x, y) - - fmt.Printf("%v\n", que.Container) - fmt.Printf("after pop %v\n", que.Container) - - que.Clear() - fmt.Printf("ceared: %v\n", que.Container) - - que.Push(7) - que.Push(8) - que.Push(9) - que.Push(10) - - fmt.Printf("peek: %v\n", que.Peek()) - fmt.Printf("first: %v\n", que.First()) - - words := linear.Stack[string]{} - - words.Push("a") - words.Push("b") - words.Push("c") - words.Push("e") - - fmt.Printf("words: %v\n", words) -}