github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/a42.gno (about) 1 package main 2 3 import ( 4 "encoding/binary" 5 "fmt" 6 ) 7 8 func main() { 9 var b [8]byte 10 binary.LittleEndian.PutUint64(b[:], uint64(1)) 11 12 fmt.Println(b) 13 } 14 15 // Output: 16 // [1 0 0 0 0 0 0 0]