Registry / utility / mem
library0.0.0-20220726221520-4f986261bf13gogounverified

Package mem provides the mem.RO type that allows you to cheaply pass and access either a read-only []byte or a string.

go get go4.org/mem
INSTALL
IMPORT
SIG · MEM
M
mem
utilitygov0.0.0-20220726221520-4f986261bf13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mem
go4.org/mem

Creates a read-only string view and prints its length

package main import ( "fmt" "go4.org/mem" ) func main() { var s mem.RO = mem.S("hello") fmt.Println(s.Len()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220726221520-4f986261bf13latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mem — go get mem · libregistry