// Container Test
package main
import "fmt"
import "container/vector"
func main() {
fmt.Printf("Hello Container Test\n");
//var v vector;
v := new(vector);
v.Push(4);
fmt.Printf("top: %d\n", v.Pop());
}
Both "var v vector" and "v:=new vector" give the errors:
cont.go:5: imported and not used: vector
cont.go:10: use of package vector not in selector
So how is one supposed to use something like container/vector?
I know this should be extremely trivial, but I can't find an example
of how to do this anywhere:
// Container Test
package main
import "fmt"
import "container/vector"
func main() {
fmt.Printf("Hello Container Test\n");
//var v vector;
v := new(vector);
v.Push(4);
fmt.Printf("top: %d\n", v.Pop());
}
Both "var v vector" and "v:=new vector" give the errors:
cont.go:5: imported and not used: vector
cont.go:10: use of package vector not in selector