Golang Memory Dump 예제
C언어에서 hexdump 같은게 없을까 찾는 분께 도움이 되길 package main import ( "encoding/binary" "encoding/hex" "fmt" "log" "runtime" "strings" "unsafe" ) func main() { // Let's print out architecture and pointer size. This will help us in // understanding the memory layout later in the program. fmt.Printf("architecture: %s\n", runtime.GOARCH) var ptr uintptr ptrSize = int(unsafe.Sizeof(ptr)) fmt.Printf("pointer ..
2020.04.22