Golang Echo and html template.
move GitHub repository for hello to golang-website-example
Run and Debug: launch.json.
First, clone the repo:
$ git clone https://github.com/ockibagusp/golang-website-example.gitRepo dep
$ make depfile: golang-website-example.sql -> new database: golang-website-example
file: golang-website-example.sql -> new database: golang-website-example-test
| Username | Password | is Admin |
|---|---|---|
| admin | admin123 | yes |
| sugriwa | user123 | no |
| subali | user123 | no |
$ make run
or,
$ make build
-
On Linux or Mac:
$ ./main -
On Windows:
$ main.exe
This using router.
Example,
$ make test$ make test-ctrlor, verbose output (-v) flag:
$ make test-verbose$ make test-verbose-ctrlor, cover all flag
$ make cover$ make cover-show$ make cover-html$ make cover-funcAir is yet another live-reloading command line utility for Go applications in development.
Live Server this is a little development server with live reload capability. Use it for hacking your HTML/JavaScript/CSS files, but not for deploying the final site.
- too much
- go version go1.20.3
-
Active Instance: MySQL 8.0.32
-
MySQL Workbench Community (GPL) version 8.0.33 CE build 2947366 (64 bit)
Saya sendang berjuang sembuh dari Stroke pada 03 Oktober 2018-hari ini. Saya dirilis 7 Januari 2020 meng-coding sedikit lupa. Mulai dari Bahasa Indonesia nol sampai saat ini; sekarang sedikit lupa. Sama, Bahasa Inggris nol sampai saat ini; sekarang banyak sulit. Belajar lagi. Insya Allah, perlahan-lahan sembuh. Aamiin.
Allah itu baik. 🙂
I am currently struggling to recover from a stroke on October 3, 2018-today. I released January 7 2020 coding was a little forgotten. Starting from Indonesian zero until now; now a little forgot. Same, English zero so far; now much difficult. Study more. Insya Allah, slowly healed. Aamiin.
Allah is good. 🙂
Copyright © 2020 by Ocki Bagus Pratama