Answer the question
In order to leave comments, you need to log in
What is the Python equivalent of the chr() function in Golang?
How to write code similar to the following Python code in Go?
from struct import pack
p = 7777
result = pack('!H', p)
Answer the question
In order to leave comments, you need to log in
This should help:
stackoverflow.com/questions/20922598/golang-packin...
type result struct {
p uint16
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question