jlelse’s Blog

Thoughts, stories and ideas

Modularizing GoBlog?

Published on in 💭 Thoughts
Updated on
Short link: https://b.jlel.se/s/450
Share onlineTranslate

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:

  1. create repository (is even possible on your own Gitea instance)
  2. go mod init gitrepo
  3. code
  4. commit
  5. push
  6. done

Update: I created another module: template-strings.

Tags: ,

Jan-Lukas Else
Interactions & Comments