Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip! Initial UI server #16

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

wip! Initial UI server #16

wants to merge 6 commits into from

Conversation

narqo
Copy link
Member

@narqo narqo commented Apr 17, 2019

No description provided.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Found some fixes!

P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).

}

// Sum adds the flat and cum values of a set of nodes.
func (ns Nodes) Sum() (flat int64, cum int64) {
Copy link

Choose a reason for hiding this comment

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

two or more consecutive named function parameters share a type, you can omit the type from all but the last

Suggested change
func (ns Nodes) Sum() (flat int64, cum int64) {
func (ns Nodes) Sum() (flat, cum int64) {

}

// SortNodes sorts the nodes in a graph based on a specific heuristic.
func (g *Graph) SortNodes(cum bool, visualMode bool) {
Copy link

Choose a reason for hiding this comment

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

two or more consecutive named function parameters share a type, you can omit the type from all but the last

Suggested change
func (g *Graph) SortNodes(cum bool, visualMode bool) {
func (g *Graph) SortNodes(cum, visualMode bool) {

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

Successfully merging this pull request may close these issues.

None yet

1 participant