18 lines
232 B
Go
18 lines
232 B
Go
package main
|
|
|
|
import(
|
|
"lib"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
var s collection.Stack
|
|
s.Push("world")
|
|
s.Push("hello, ")
|
|
for s.Size() > 0 {
|
|
fmt.Print(s.Pop())
|
|
}
|
|
fmt.Println()
|
|
// Output: hello, world
|
|
}
|