Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The debug result is different with go run result ( using unsafe. Pointer, got byte cap = 0 and len >0 ) #40541
What version of Go are you using (
Your code is not sound, you cannot convert a string to a byte safely.
I'm going to close this issue as it does not seem like there is a bug in Go. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For asking questions, see: