Modularizing GoBlog?
β οΈ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.I just separated the function I told you about the other day (the one for marking text with β==β) as a Go module. This way the main code remains more organized and if I donβt need the feature any more, the module is still usable. Also for other people who might need the same functionality. I think I should modularize GoBlog even more. π€
Creating a Go Module is also pretty simple:
- create repository (is even possible on your own Gitea instance)
go mod init gitrepo
- code
- commit
- push
- done
Update: I created another module: template-strings.