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"
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
package main
import (
"fmt"
"os"
"github.com/go-kit/kit/log"
)
const esc = "\x1b"
@suntong
suntong / Table.md
Last active November 25, 2020 02:31
a b c
1 2 3
// https://crunchify.com/how-to-iterate-through-java-list-4-way-to-iterate-through-loop/
import java.util.*;
/**
* @author Crunchify.com
* How to iterate through Java List? Seven (7) ways to Iterate Through Loop in Java.
* 1. Simple For loop
* 2. Enhanced For loop
* 3. Iterator
// https://www.tutorialspoint.com/java/java_generics.htm
public class MyClass {
// == generic method printArray
public static < E > void printArray( E[] inputArray ) {
// Display array elements
for(E element : inputArray) {
System.out.printf("%s ", element);
}
System.out.println();
# program name, name for the executable
ProgramName: OpenSesame
PackageName: main
# Name of the structure to hold the values for/from commandline
StructName: Options
# The actual variable that hold the commandline paramter values
StructVar: Opts
  • golang-gopkg-libgit2-git2go.v28-dev:
    • Not in testing
    • passed
    • failed
  • guile-git:
    • Not in testing
    • passed
    • failed
  • libgit2-glib-1.0-dev:
  • Not in testing
12 Administ
1 FIELD
1 Joshua
2 Justin
1 Lanzhou
1 Redistoo
1 System
3 Test
1 UTC
1 a
  • golang-gopkg-libgit2-git2go.v28-dev:
    • passed
    • failed
  • guile-git:
    • passed
    • failed
  • libgit2-glib-1.0-dev:
    • passed
    • failed
  • librust-libgit2-sys-dev: