forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
283 B
11 lines
283 B
package tree
|
|
|
|
// StringToBytes converts string to byte slice without a memory allocation.
|
|
func StringToBytes(s string) []byte {
|
|
return []byte(s)
|
|
}
|
|
|
|
// BytesToString converts byte slice to string without a memory allocation.
|
|
func BytesToString(b []byte) string {
|
|
return string(b)
|
|
}
|
|
|