Skip to content

Instantly share code, notes, and snippets.

View jaedsadadotme's full-sized avatar
🎯
Focusing

Jaedsada Chaisorn jaedsadadotme

🎯
Focusing
View GitHub Profile
package main
import (
"encoding/json"
"net/http"
"github.com/labstack/echo/v4"
)
func GetCaseToday(c echo.Context) error {
@jaedsadadotme
jaedsadadotme / VagrantFile
Last active May 27, 2020 16:29
Vagrant K8s
IMAGE_NAME = "bento/ubuntu-18.04"
COUNTER = 2
PROVIDER = "virtualbox"
Vagrant.configure("2") do |config|
config.vm.box = IMAGE_NAME
config.vm.provider PROVIDER do |v|
v.memory = 1024
v.cpus = 2
end
@jaedsadadotme
jaedsadadotme / s3.go
Last active May 27, 2020 16:39
simple upload file to s3 ด้วย golang
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
@jaedsadadotme
jaedsadadotme / local.go
Last active May 27, 2020 16:37
uploadfile local ด้วย golang
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"github.com/gorilla/mux"