Skip to content

contrib/julienschmidt/httprouter: add godoc links #3610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contrib/julienschmidt/httprouter/httprouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016 Datadog, Inc.

// Package httprouter provides functions to trace the julienschmidt/httprouter package (https://github.com/julienschmidt/httprouter).
// Package httprouter provides functions to trace the [github.com/julienschmidt/httprouter] package.
package httprouter // import "github.com/DataDog/dd-trace-go/contrib/julienschmidt/httprouter/v2"

import (
Expand All @@ -22,7 +22,7 @@ func init() {
instr = instrumentation.Load(instrumentation.PackageJulienschmidtHTTPRouter)
}

// Router is a traced version of httprouter.Router.
// Router is a traced version of [httprouter.Router].
type Router struct {
*httprouter.Router
config *tracing.Config
Expand All @@ -35,7 +35,7 @@ func New(opts ...RouterOption) *Router {
return &Router{httprouter.New(), cfg}
}

// ServeHTTP implements http.Handler.
// ServeHTTP implements [http.Handler].
func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
tw, treq, afterHandle, handled := tracing.BeforeHandle(r.config, r.Router, wrapRouter, w, req)
defer afterHandle()
Expand Down
Loading