Notes - Cobra Commander for Go
Creating a CLI program by using Cobra Generator
This is a step by step on how to create a Go program to generate a liquidation report by using Cobra Generator.
This is a step by step on how to create a Go program to generate a liquidation report by using Cobra Generator.
Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity.
Viper is a complete configuration solution for Go applications from spf13.
Viper uses the following precedence order. Each item takes precedence over the item below it:
C:\Program Files\PostgreSQL\13\datapostgres / my-password[Default locale]// check version
lsb_release -a
sudo apt update
// version 12 in Ubuntu 20
sudo apt install postgresql
sudo -u postgres createuser --interactive
sudo -i -u postgres
createdb dbname
psql
\? // list all psql commands
\h // list all the SQL commands
\conninfo
\l
\d
ALTER USER postgres PASSWORD 'root';
\q // quit
From the Start > PostgrSQL 13, you can open pgAdmin or SQL Shell to test the installation.
Our system uploaded the exported Inventory All Fields file into Egnyte Plateform every day for each facility. I need to analyze this file to create two reports each week. (Each file is about 70M or more).
Add Shortcut to Drive to add a shared folder shortcut to a specific folder(My Drive/XingFu) of your Drive. You can delete this afterwards.Note: Validator will fail at the first tag that violet the rule.
For example, a string “A.G” with rule “alpha,min=10” will cause the following error:
// localhost/user/123?name=Andrew&age=12
e.GET("/user/:id", showInfo)
func showInfo(c echo.Context) error {
// name, age are get from url parameters;
myname := c.QueryParam("name") // Andrew
myage := c.QueryParam("age") // 12
// id is get from url path
myid := c.Param("id") // 123
...
}
In the struct definitions each field can be tagged to restrict binding to specific source.
<script>
import { DatePicker, DatePickerInput } from "carbon-components-svelte";
</script>
<DatePicker datePickerType="single" dateFormat="m/d/Y">
<DatePickerInput labelText="Schedule a meeting" placeholder="mm/dd/yyyy" />
</DatePicker>
datePickerType to single or range, the calendar will show outdateFormat use only one character for day, month and year.
e.g. March 15, 2021 - m/d/Y(03/15/2021) or Y-m-d(2021-03-15)colspan & rowspan Examples<table>
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
</tr>
<tr>
<td colspan="2">Row 2, Col 1 & Col 2</td>
</tr>
</table>
<table>
<tr>
<th>Row 1, Col 1</th>
<th>Row 1, Col 2</th>
</tr>
<tr>
<td>Row 2, Col 1</td>
<td rowspan="2">Row 2 & Row 3, Col 2</td>
</tr>
<tr>
<td>Row 3, Col 1</td>
</tr>
</table>
If you want to link to a specific topic/section of a page, Add an id attribute and give a name to the section of the page.