Skip to content

v0.2.0

Choose a tag to compare

@jakewilliami jakewilliami released this 06 Nov 09:05
· 32 commits to master since this release
0a70e06

Fix project structure! v0.2.0

Since refactoring in v0.1.0, I realised that this does not work, as the most important library code is in an internal/ directory and so is not accessible to the user. Therefore, I have refactored again to the following structure:

.
├── go.mod
├── go.sum
├── tldinfo.go
└── tldconsts.go

This will work for the library, but I think as I extend this project, I envision a different structure, more along the lines of this:

.
├── go.mod
├── go.sum
├── tldinfo.go
└── src
    ├── libfile.go
    └── anotherlibfile.go

I have not yet figured out how to do this, mind, so this solution works for now.

Note also that since implementing v0.1.1, I needed to change the consts to vars. I was doing the ol' compiler test when implementing v0.1.1, but because the internal code is never actually imported or used in the library, it didn't error. I knew using const was too good to be true!

Related MR: #2

Full Changelog: v0.1.1...v0.2.0