Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
Convert []byte to string.
Example ¶
package main import ( "fmt" "github.com/snf1k/fbsc" ) func main() { b := []byte{72, 101, 108, 108, 111} fmt.Println(fbsc.BytesToString(b)) }
Output: Hello
func StringToBytes ¶
Convert string to bytes.
Example ¶
package main import ( "fmt" "github.com/snf1k/fbsc" ) func main() { s := "World" fmt.Println(fbsc.StringToBytes(s)) }
Output: [87 111 114 108 100]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.