Commit | Line | Data |
---|---|---|
a766d390 DE |
1 | package main |
2 | ||
3 | import ("fmt" | |
4 | "unsafe") | |
5 | ||
6 | var mystring = "Shall we?" | |
7 | ||
8 | func main () { | |
04ff1e61 | 9 | fmt.Printf ("%d\n", unsafe.Sizeof (42)) |
a766d390 DE |
10 | fmt.Printf ("%d\n", unsafe.Sizeof (mystring)) |
11 | } |