Summary
main.go passes the literal "KeyCredentialBase" to gopengraph.NewOpenGraph instead of the KindKeyCredentialBase constant defined for exactly this purpose, leaving the constant unused and allowing the source kind to diverge from its single source of truth.
Location
- File(s):
main.go, kinds.go
- Line(s) / function(s):
main() at L114 (gopengraph.NewOpenGraph("KeyCredentialBase")); constant KindKeyCredentialBase at kinds.go:4
Note
This is a maintainability/consistency cleanup, not a behavioral bug — the literal is byte-identical to the constant's value, so output is unchanged. Filed at the maintainer's explicit request and tracked here for traceability; it is outside the strict bug scope.
Current Behavior
main.go:114 uses the string literal "KeyCredentialBase"; the KindKeyCredentialBase constant in kinds.go is dead code. The source kind is therefore declared in two places that can silently diverge.
Desired Behavior
main.go references KindKeyCredentialBase so the source kind has one authoritative definition.
Summary
main.gopasses the literal"KeyCredentialBase"togopengraph.NewOpenGraphinstead of theKindKeyCredentialBaseconstant defined for exactly this purpose, leaving the constant unused and allowing the source kind to diverge from its single source of truth.Location
main.go,kinds.gomain()at L114 (gopengraph.NewOpenGraph("KeyCredentialBase")); constantKindKeyCredentialBaseatkinds.go:4Note
This is a maintainability/consistency cleanup, not a behavioral bug — the literal is byte-identical to the constant's value, so output is unchanged. Filed at the maintainer's explicit request and tracked here for traceability; it is outside the strict bug scope.
Current Behavior
main.go:114uses the string literal"KeyCredentialBase"; theKindKeyCredentialBaseconstant inkinds.gois dead code. The source kind is therefore declared in two places that can silently diverge.Desired Behavior
main.goreferencesKindKeyCredentialBaseso the source kind has one authoritative definition.