Skip to content

Printer should print the struct type#1

Open
hayeah wants to merge 1 commit into
gobs:masterfrom
hayeah:master
Open

Printer should print the struct type#1
hayeah wants to merge 1 commit into
gobs:masterfrom
hayeah:master

Conversation

@hayeah

@hayeah hayeah commented Sep 17, 2013

Copy link
Copy Markdown

No description provided.

@raff

raff commented Sep 17, 2013

Copy link
Copy Markdown
Member

Did you try with an anonymous structure ? I would think the type name would be empty in which case it should print "struct".

@hayeah

hayeah commented Sep 18, 2013

Copy link
Copy Markdown
Author

@raff huh. I am new to Golang, and didn't know about anonymous struct.

For those, the type name would be the struct definition.

e.g. struct { A string; B int }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants