Skip to content

Instantly share code, notes, and snippets.

View ws6's full-sized avatar
:shipit:
Working

Jingtao ws6

:shipit:
Working
View GitHub Profile
@ws6
ws6 / main.go
Created August 7, 2020 00:27 — forked from manishtpatel/main.go
GoLang Encrypt string to base64 and vice versa using AES encryption.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"fmt"
"io"
)
@ws6
ws6 / golang_pipe_http_response.go
Created June 23, 2020 18:05 — forked from ifels/golang_pipe_http_response.go
golang pipe the http response
package main
import (
"io"
"net/http"
"os/exec"
)
var (
BUF_LEN = 1024