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

Change structure to separate application from library #4

Merged
merged 5 commits into from
May 17, 2024

Conversation

nathreed
Copy link
Contributor

Move application to cmd/main.go and update documentation
Move a few things into library code and name it a new package "tileutils"

Update to setup-go action is included to resolve GitHub complaining about deprecated nodejs version used by this action.

Move application to cmd/main.go and update documentation
Move a few things into library code and name it a new package "tileutils"
@nathreed nathreed requested a review from polastre May 17, 2024 17:48
Copy link
Collaborator

@polastre polastre left a comment

Choose a reason for hiding this comment

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

Refactor looks good. Since the main exported package is tileutils, we should probably put that in pkg/tileutils and import from github.com/flightaware/baremaps-exporter/pkg/tileutils

@@ -1,13 +1,13 @@
package main
package tileutils
Copy link
Collaborator

Choose a reason for hiding this comment

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

technically this package should be called baremaps-exporter. If we are going to call this tileutils we should probably put it in a pkg/tileutils directory to follow golang name standards.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted a one word name, so I moved it to pkg/tileutils.

@nathreed nathreed merged commit dcf7146 into main May 17, 2024
1 check passed
@nathreed nathreed deleted the make-importable branch May 17, 2024 19:51
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