package util

import "github.com/coder/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.13 (latest)
Published
Mar 14, 2025
Platform
darwin/amd64
Last checked
7 hours ago

Tools for package owners.