I have a simple Go library (~300 lines, mostly type declarations and nice methods and compatibility methods for gomobile etc., also pretty-printing scripts). The heart of the whole project are two regexes, placed in a separate file in my Go repository.
What is the best way to include the regexes at compile/build time as string constants? In case of Golang, it seems that the only way is to use
git submodules (or even treat it as a sepratate Go package in Go project).
But I've lost my hope for a pretty solution, and that's why I'm asking here and not on SO; how do you solve such problems? The simplest way would be to manually "cherry-pick" commits from each repository, setting author field manually.