Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToGoArraySource ¶
BytesToGoArraySource is similar to BytesToGoSliceSource but generate array instead of slice. Example: for b=[]byte{0x01, 0x02, 0x03} BytesToGoSliceSource write "[3]byte{0x01, 0x02, 0x03}" AS STRING.
func BytesToGoSliceSource ¶
BytesToGoSliceSource convert given slice of bytes to GoLang source code representation and write it to given io.Writer. Example: for b=[]byte{0x01, 0x02, 0x03} BytesToGoSliceSource write "[]byte{0x01, 0x02, 0x03}" AS STRING. This function may be useful with "//go:generate" directive to include some (binary) files into app at compile time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.