예제 #1
0
파일: main.go 프로젝트: mabetle/mcore
// Demo demo
func Demo() {
	l := mcore.NewArrayList(User{})
	l.Put(User{Name: "a"})
	l.Put(User{Name: "b"})
	fmt.Println(l.Len())
	fmt.Println(l.Type())
	l.Print()
}
예제 #2
0
파일: main.go 프로젝트: mabetle/mcore
// Demo2 demo
func Demo2() {
	s := ""
	l := mcore.NewArrayList(s)
	l.Put("Hello", "ABC")
	l.Print()
}