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

[FEATURE REQUEST] Getter/setter for attribute 'orderPos' #12

Closed
LdDl opened this issue Feb 20, 2021 · 1 comment · Fixed by #13
Closed

[FEATURE REQUEST] Getter/setter for attribute 'orderPos' #12

LdDl opened this issue Feb 20, 2021 · 1 comment · Fixed by #13
Assignees
Labels
enhancement New feature or request

Comments

@LdDl
Copy link
Owner

LdDl commented Feb 20, 2021

Is your feature request related to a problem? Please describe.
Currently field

type Vertex struct {
	...
	orderPos int
        ...
}

is unexported.
For extended debugging in external appliactions and import/export function we need to make getter/setter for it.

Describe the solution you'd like and provide pseudocode examples if you can
Pretty simple getter/setter combo:

func (vertex *Vertex) OrderPos() int {
	return vertex.orderPos
}
func (vertex *Vertex) SetOrderPos(orderPos int){
	vertex.orderPos = orderPos
}

Describe alternatives you've considered and provide pseudocode examples if you can
Nope

Additional context
This issue is related to #11

@LdDl LdDl added the enhancement New feature or request label Feb 20, 2021
@LdDl LdDl self-assigned this Feb 20, 2021
@LdDl
Copy link
Owner Author

LdDl commented Feb 20, 2021

This is related to #11 since those two unexported fields could be useful for external applications (and export/import graph function)

@LdDl LdDl changed the title [FEATURE REQUEST] Getter for attribute 'orderPos' [FEATURE REQUEST] Getter/setter for attribute 'orderPos' Feb 20, 2021
@LdDl LdDl mentioned this issue Feb 20, 2021
@LdDl LdDl closed this as completed in #13 Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant