1 package mem 2 3 func Main() { 4 // Go compiles into Wasm with a 16MB heap. 5 // As there will be some used already, allocating 16MB should force growth. 6 _ = make([]byte, 16*1024*1024) 7 } 8
View as plain text