fix: correct implicit struct field name for pointer (#158)
This commit is contained in:
committed by
Ludovic Fernandez
parent
9b1a0c006c
commit
e63a9ae1de
18
_test/struct13.go
Normal file
18
_test/struct13.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Fromage struct {
|
||||
http.Server
|
||||
}
|
||||
|
||||
func main() {
|
||||
a := Fromage{}
|
||||
fmt.Println(a.Server)
|
||||
}
|
||||
|
||||
// Output:
|
||||
// { <nil> <nil> 0s 0s 0s 0s 0 map[] <nil> <nil> 0 0 {{0 0} 0} <nil> {0 0} map[] map[] <nil> []}
|
||||
Reference in New Issue
Block a user