Help us shape the future of Go! Take the 2026 Go Developer Survey

net

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CR   = byte('\r')
	LF   = byte('\n')
	CRLF = string([]byte{CR, LF})
)

Functions

func DropCR

func DropCR(data []byte) []byte

func ScanCRLF

func ScanCRLF(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type Conn

type Conn struct {
	TcpConn net.Conn

	Max      int
	Hajacked bool
	// contains filtered or unexported fields
}

func (*Conn) Read

func (c *Conn) Read() ([]byte, error)

func (*Conn) Write

func (c *Conn) Write(s string) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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