3 ms·
If you think that way, then everything is incompatible, because the person using your lib could always do a hash of your lib file and create code that depends o
by paskozdilar 5y ago
If you think that way, then everything is incompatible, because the person using your lib could always do a hash of your lib file and create code that depends on it:
if hash(libpath) != predefinedHash {
log.Fatal("broken compatibility teehee")
}
In the context of semver, "API" means "public API". There is no other API but public API.
- wh33zle 5y agoYes perhaps I misunderstood you. I was trying to point out that semver is okay with having elements in the "public" API of a library (public in the sense of you can import and use it, i.e. not hidden in private modules etc) but explicitly documenting that it is not considered public API in regards to semver. If that is what you meant with "official API" then we are on the same page.