mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
* 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 <[email protected]>
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
|