cast

package
v0.0.0-...-0871eb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cast is just sample

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BtoS

func BtoS(bt []byte) string

BtoS is to cast []byte to string

func BufferBtoS

func BufferBtoS(bt []byte) string

BufferBtoS is to cast []byte to string using bytes.NewBuffer()

func BufferStoB

func BufferStoB(str string) []byte

BufferStoB is to cast string to []byte using bytes.NewBuffer()

func StoB

func StoB(str string) []byte

StoB is to cast string to []byte performance is not good because of copy whole memory

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL