Skip to content

Refactor to move files out of /pkg and fix import cycle #6

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

Merged
merged 1 commit into from
Mar 28, 2019

Conversation

lenny-goodell
Copy link
Member

This PR addresses issue #5

Files in /pkg were improperly importing /internal packages. Moved interface.go & factory.go to registry folder at root and move structs out of interface.go to fix import cycle issue. Refactored code for new types namespace. Also some unit test code clean-up to explicitly ignore return values so IDE is happy.

@tsconn23
Copy link
Member

The addition of explicit ignoring of return types looks weird. But after reviewing the two links below, it looks like the way the Go language is moving -- albeit in potentially a less verbose way.

golang/go#20803
golang/go#20148

@lenny-goodell
Copy link
Member Author

@tsconn23 , yea that was me fixing things flagged by Goland to get that pretty green checkmark... ;-)

@lenny-goodell lenny-goodell merged commit 03f10c7 into edgexfoundry:master Mar 28, 2019
@lenny-goodell lenny-goodell deleted the FileRefactor branch March 28, 2019 18:31
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