🌐 US-Proxy
>

wsjson

package
v1.8.15 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: ISC Imports: 7 Imported by: 342 modules, 128 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation ΒΆ

Overview ΒΆ

Package wsjson provides helpers for reading and writing JSON messages.

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

func Read ΒΆ

func Read(ctx context.Context, c *websocket.Conn, v any) error

Read reads a JSON message from c into v. It will reuse buffers in between calls to avoid allocations.

func Write ΒΆ

func Write(ctx context.Context, c *websocket.Conn, v any) error

Write writes the JSON message v to c. It will reuse buffers in between calls to avoid allocations.

Types ΒΆ

This section is empty.

Jump to

Keyboard shortcuts

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