golang-writing-web-applications

command module
v0.0.0-...-ee96b3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

README

golang-writing-web-applications

Fork of official https://golang.org/doc/articles/wiki/ example code.

Summary

This is a fork I created of of the official https://golang.org/doc/articles/wiki/ example code while following along with the article. Many thanks to the authors and contributors to that article as I found it a very useful learning exercise.

Further development has been done towards the Other tasks items included at the end of that article:

  • Store templates in tmpl/ and page data in data/.
  • Add a handler to make the web root redirect to /view/FrontPage.
  • Spruce up the page templates by making them valid HTML and adding some CSS rules.
  • Implement inter-page linking by converting instances of [PageName] to <a href="/view/PageName">PageName</a>. (hint: you could use regexp.ReplaceAllFunc to do this)

See the issues list, commits or current state of the code for my solution to (some of) these items. I'm still fairly new to Go, so feel free to open an issue or give me a shout via Twitter for anything I'm doing wrong.

Future Development

Aside from the post-article learning exercises listed above and some minor tweaks of my own (e.g., use a popular Markdown to HTML parser package), this code is as-is and I do not plan on making further changes it.

I'm setting this repo's visibility to public in the hope that others could benefit from what I've learned (e.g., Google search), but moving on to other projects in an attempt to further my Go knowledge.

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL