websocketnhooyr.io/websocket/internal/util Index | Files

package util

import "nhooyr.io/websocket/internal/util"

Index

Types

type ReaderFunc

type ReaderFunc func(p []byte) (int, error)

ReaderFunc is used to implement one off io.Readers.

func (ReaderFunc) Read

func (f ReaderFunc) Read(p []byte) (int, error)

type WriterFunc

type WriterFunc func(p []byte) (int, error)

WriterFunc is used to implement one off io.Writers.

func (WriterFunc) Write

func (f WriterFunc) Write(p []byte) (int, error)

Source Files

util.go

Version
v1.8.17 (latest)
Published
Aug 10, 2024
Platform
linux/amd64
Last checked
1 hour ago

Tools for package owners.