Skip to content

Instantly share code, notes, and snippets.

@suntong
suntong / newGoAPI.sh
Created April 17, 2021 16:35 — forked from buildingwatsize/newGoAPI.sh
[v0.1.0] Golang + Fiber Boilerplate with a single command `./newGoAPI.sh` | Note: maybe you have to run `chmod a+x newGoAPI.sh` first
#!/bin/sh
echo "=================================="
echo "Welcome to Golang + Fiber Project Creator v0.1.0"
echo "=================================="
echo "For this script, The user have to input the project name (this will use to be the go module name and the project name."
echo ""
read -n 1 -s -r -p "Press any key to continue"
echo "\n"
@suntong
suntong / Sql.rl
Created August 7, 2021 16:14 — forked from umjasnik/Sql.rl
simple SQL parser using ragel - get all tables that are referenced in a SQL statement
package de.uwefleischer.statemachines;
import java.util.Set;
import java.util.TreeSet;
public class Sql {
private static Set<String> tables;
%%{