Movatterモバイル変換


[0]ホーム

URL:


wsjson

package
v1.8.13Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License:ISCImports:7Imported by:56

Details

Repository

github.com/coder/websocket

Links

Documentation

Overview

Package wsjson provides helpers for reading and writing JSON messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcRead

func Read(ctxcontext.Context, c *websocket.Conn, v interface{})error

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

funcWrite

func Write(ctxcontext.Context, c *websocket.Conn, v interface{})error

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

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp