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.
Web development by Go language is a challenge. Not because Go is a hard language to learn, but Go is mainly a back-end language. My opinion though is that Go is well suited for web development. Although 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 consist of the "holy trinity" (HTML, CSS and JS). But you may need some "javascript libraries" that are basically other "languages" upon Javascript.
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.
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.
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 internal IP. Secure and fast. The Postgresql database is also called by internal IP. So no public ports open to either API or database.
Tables are used in many places. The trick is to load, sort and filter fast. Trying find out if the table should be created by Go or Javascript. There are benefits with both.
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.
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 Javascript (fetch()).
One option to automate tasks is a CRON-server. Just a cron server 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.
Creating charts from Go using embedded Chart.js Javascript library
Sometimes - for several reasons - you have to move databases from one VPS to another VPS. When dealing with hundreds of databases I created this "script" to make the migration easier. This script is using the well proven pg_dump and pg_restore, but in a more automatic way.