A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/coder/websocket/wsjson below:

wsjson package - github.com/coder/websocket/wsjson - Go Packages

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 interface{}) 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 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4