* feat: support go1.22 * Temporary fix for consistency tests due to language change in for loops * review: clean old files --------- Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
25 lines
267 B
Go
25 lines
267 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
type extendedRequest struct {
|
|
http.Request
|
|
|
|
Data string
|
|
}
|
|
|
|
func main() {
|
|
r := extendedRequest{}
|
|
req := &r.Request
|
|
|
|
fmt.Printf("%T\n", r.Request)
|
|
fmt.Printf("%T\n", req)
|
|
}
|
|
|
|
// Output:
|
|
// http.Request
|
|
// *http.Request
|