Files
moxa/_test/moxie_phase1_1_test.go
mleku b974bb23ea
Some checks failed
Build Cross OS / Go (/go, oldstable, macos-latest) (push) Has been cancelled
Build Cross OS / Go (/go, oldstable, ubuntu-latest) (push) Has been cancelled
Build Cross OS / Go (/go, stable, macos-latest) (push) Has been cancelled
Build Cross OS / Go (/go, stable, ubuntu-latest) (push) Has been cancelled
Build Cross OS / Go (\go, oldstable, windows-latest) (push) Has been cancelled
Build Cross OS / Go (\go, stable, windows-latest) (push) Has been cancelled
Main / Linting (push) Has been cancelled
Main / Checks code and generated code (oldstable) (push) Has been cancelled
Main / Checks code and generated code (stable) (push) Has been cancelled
Main / Build and Test (oldstable) (push) Has been cancelled
Main / Build and Test (stable) (push) Has been cancelled
implement 1.1 explicit collection type pointers
2025-11-22 09:58:03 +00:00

17 lines
350 B
Go

package main
import "fmt"
func main() {
// Test 1: Pointer-wrapped slice
s := &[]int{1, 2, 3}
fmt.Println("Slice:", s)
fmt.Println("s[0]:", (*s)[0]) // Manual dereference
// TODO: Test map once the issue is resolved
// m := &map[string]int{"a": 1, "b": 2}
// fmt.Println("Map:", m)
fmt.Println("Phase 1.1 basic slice test completed!")
}