Skip to content

conn: properly mark UnderlyingConn() as deprecated#998

Open
simondeziel wants to merge 1 commit intogorilla:mainfrom
simondeziel:deprecated-doc-comment
Open

conn: properly mark UnderlyingConn() as deprecated#998
simondeziel wants to merge 1 commit intogorilla:mainfrom
simondeziel:deprecated-doc-comment

Conversation

@simondeziel
Copy link
Copy Markdown

Fixes commit 9413ded

Without the empty comment line before, the function is not properly marked as deprecated as can be seen in this index

Fixes commit 9413ded

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel simondeziel marked this pull request as ready for review August 25, 2025 21:37
scalecode-solutions referenced this pull request in scalecode-solutions/magilla Apr 24, 2026
Foundation commit for the personal fork. No behavior change beyond
what the Go toolchain and std-lib bumps imply.

Module & toolchain
  * Rewrite module path to github.com/scalecode-solutions/websocket
    across go.mod, README, examples, and import statements.
  * Bump language version from 1.20 -> 1.26 (matches local toolchain).
  * Bump golang.org/x/net from v0.26.0 -> v0.53.0, closing the path
    flagged by upstream issue #991 (HTTP/2 CVEs in older x/net).

Hygiene (small, mechanical)
  * interface{} -> any across compression.go, conn.go, conn_test.go,
    and json.go (upstream PR #1000). BufferPool interface signature
    changes are source-compatible since any is an alias.
  * Fix "best effor" -> "best effort" and "buferred" -> "buffered"
    typos in conn.go and server.go (upstream PR #975, carried in
    PR #1011).
  * Add the missing blank line before the Deprecated: marker on
    UnderlyingConn so godoc/linters treat it as deprecated
    (upstream PR #998).
  * Extend the DialContext godoc to note that non-101 responses
    produce an error (upstream PR #965).

Drop pre-1.21 compat cruft
  * Delete mask_safe.go and the !appengine build tags. Classic
    App Engine required a sandboxed Go runtime without unsafe; it
    was retired in 2020 and modern App Engine uses the standard
    toolchain.
  * Drop legacy `// +build` lines (Go 1.18+ only needs //go:build).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant