Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
Example ¶
package main import ( "fmt" "codeberg.org/galaxy/fsbc" ) func main() { bytes := []byte{72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33} str := fsbc.BytesToString(bytes) fmt.Println(str) }
Output: Hello World!
func StringToBytes ¶
Example ¶
package main import ( "fmt" "codeberg.org/galaxy/fsbc" ) func main() { str := "Hello World!" bytes := fsbc.StringToBytes(str) fmt.Println(bytes) }
Output: [72 101 108 108 111 32 87 111 114 108 100 33]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.