GoHosting
To host several Go sites is somewhat different than hosting Wordpress, PHP etc. As Go is an executable, you have to use Nginx as a "proxy" to redirect to each Go application. Read more...
Web development by Go language is a challenge. Not because Go is a hard language to learn, but the ecosystem for web development is not mature. And the Go community help is limited regarding web development using Go. This "portal" is aimed to document my efforts to grasp this. Go is the engine, but most parts consists of the "holy trinity" (HTML, CSS and JS). But upon this you may need "javascript libraries" that are basically other "languages".
To host several Go sites is somewhat different than hosting Wordpress, PHP etc. As Go is an executable, you have to use Nginx as a "proxy" to redirect to each Go application. Read more...
A Go static web site is basically 90 percent traditional HTML, CSS and JS. Go replaces the web server (Apache and Nginx) and manages endpoints. The endpoints pick a Go Template and render at the server (SSR). A static site is blazing fast. Read more...
You can connect the database directly from Go. Without API. But there are several benefits from using an API. Right now I am playing with a "hidden" API that is only available from localhost. Secure and fast. The Postgresql database is also called by localhost. So no ports open to either API or database. Read more...
Tables are used in many places. The trick is to load, sort and filter fast. As tables are rendering in Go by the server, it will be slower than client side rendering (CSR). So in my attempt to create as fast tables as possible I am using AJAX with fetching directly from the API. Trying some javascript libraries and the results vary. Read more...
Actually there is minimal Go involved. I am using AJAX, Javascript and probably also storing the "form" in Postgresql. Click in on a table row and populate the form dynamically using Javascript. Read more...
This is a mockup for a Time Tracking app. Mostly created using HTML forms and Javascript. Work in progress...
There are several benefits to using a REST API. This site shows my attempts to understand the concept and create an API that can meet my challenges. Read more...
This is a simple To Do list that uses goAPI to serve data from Postgresql. Go renders the HTML at build time from templates and all dynamic content provided by AJAX (Javascript).
One option to automate tasks is a CRON-server. Just a clock that do what ever you want with some intervals.
This example is mainly built on CSS with some help from HTML and Javascript. GoTheme is built upon a small engine of Go which also replaces Apache and/or Nginx and the site is built by using Go templates.
There is at least three ways to create a menu. This test is created by fetching data and let Go create the menus in HTML.
This is a demo how to switch languages on-the-fly using Go Templates.