Skip to content

Conversation

@glenjamin
Copy link

No description provided.

},
{
name: "heap-dump",
short: "writes the results of debug.WriteHeapDump to a file.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the other shorts are capitalised

Suggested change
short: "writes the results of debug.WriteHeapDump to a file.",
short: "Writes the results of debug.WriteHeapDump to a file.",

}
fmt.Fprintf(conn, "New GC percent set to %v. Previous value was %v.\n", perc, debug.SetGCPercent(int(perc)))
case signal.WriteHeapDump:
fc, ok := conn.(fileConn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What guarantees that you can perform this cast?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's implemented by both IPConn and UnixConn

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