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
17 lines
350 B
Go
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!")
|
|
}
|