8000
package main import ( "fmt" "github.com/kr/pretty" ) type A struct { B *B } type B struct { M map[string]string } func main() { a := &A{B: &B{M: map[string]string{}}} fmt.Printf("%# v\n", pretty.Formatter(a)) //prints out /* &main.A{ B: &main.B{ M: {}, }, } */ //This contains a syntax error c := &A{ B: &B{ M: {}, }, } }
This line M: {} gives the err 75FD or: missing type in composite literal
M: {}
missing type in composite literal
I would really love to be able to print valid go source.
This problem is also present for slices of structs and non empty maps.
first commit
This tool is really quite useful. Good work.
I was also wondering, like above, if you plan to fix this soon?
Activity
awalterschulze commentedon Jan 31, 2017
This line
M: {}gives the err 75FD or:missing type in composite literalawalterschulze commentedon Jan 31, 2017
I would really love to be able to print valid go source.
This problem is also present for slices of structs and non empty maps.
first commit
bana-io commentedon Apr 15, 2018
This tool is really quite useful. Good work.
I was also wondering, like above, if you plan to fix this soon?