fix: correct implicit struct field name for pointer (#158)

This commit is contained in:
Marc Vertes
2019-04-17 11:05:14 +02:00
committed by Ludovic Fernandez
parent 9b1a0c006c
commit e63a9ae1de
5 changed files with 75 additions and 17 deletions

18
_test/struct13.go Normal file
View 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> []}