Jan-Lukas Else

Thoughts of an IT expert

Modularizing GoBlog?

Published on in πŸ’­ Thoughts
Updated on
Short link: https://b.jlel.se/s/450
⚠️ 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:

  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