hello

command module
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 3 Imported by: 0

README

Hello

Golang Echo and html template.

Visual Studio Code
Run and Debug: launch.json.

Getting Started

First, clone the repo:

$ git clone https://github.com/ockibagusp/hello.git
Setting MySQL database
Database

file: hello.sql -> new database: hello

Testing

file: hello.sql -> new database: hello_test

User Tables

Username Password
ockibagusp user123
sugriwa user123
subali user123

Router

This using router.

httpexpect: Test for Debug

This using debug.

Optional. Default value @debug: {true} or {1}.

  1. function debug (bool)

    @function debug: {true} or {false}

  2. os.Setenv("debug", ...)

    • @debug: {true} or {1}

      os.Setenv("debug", "true") 
      

      or,

      os.Setenv("debug", "1")
      
    • @debug: {false} or {0}

      os.Setenv("debug", "false") 
      

      or,

      os.Setenv("debug", "0")
      
Running app
Compile and run Go program
$ go run main.go

or,

Build compiles the packages
$ go build
  • On Linux or Mac:

    $ ./hello
    
  • On Windows:

    $ hello.exe
    
Test the packages
$ go test github.com/ockibagusp/hello/test 

or, verbose output (-v) flag:

$ go test github.com/ockibagusp/hello/test -v

TODO List

  • mock unit test
  • session: IsAdmin, IsUser and IsAuth
  • list pagination with next, previous, first and last
  • Mutex: BankAccount
  • too much

Operating System (with me)

Linux:
  • Fedora 35 Workstation
Go:
  • go1.16.11 linux/amd64
MySQL:
  • mysql Ver 8.0.27 for Linux on x86_64 (Source distribution)
Bahasa Indonesia

Der Schlaganfall 03.10.2018-heute. Dirilis 7 Januari 2020. Coding ini sedikit lupa. Pun, itu Bahasa Inggris lupa lagi. Perlahan-lahan dari stroke. Amin.

English (translate[.]google[.]co[.]id)

Stroke: 03 10 2018-today. Released January 7, 2020. This coding is a little forgotten. This English forgot again. Little by little from stroke. Amen.


Copyright © 2020 by Ocki Bagus Pratama

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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