Skip to content

Instantly share code, notes, and snippets.

View hysios's full-sized avatar
🎯
Focusing

hysios hysios

🎯
Focusing
View GitHub Profile
@hysios
hysios / yaml_parser.go
Last active September 20, 2018 12:36
YAML 做定制解析功能
package main
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"log"
"os"
"reflect"
@hysios
hysios / Dockerfile
Last active September 25, 2018 07:18
sqlite3 compile at linux
FROM golang:1.11.0 as builder
RUN apt-get -y update && apt-get install -y sqlite3 libsqlite3-dev
COPY . /go/src/sqltest
WORKDIR /go/src/sqltest
RUN go build -o sqltest main.go
package main
import (
"errors"
"fmt"
"log"
"sync"
"time"
)
@hysios
hysios / aliyun-ubuntu.list
Created August 6, 2020 07:15
aliyun ubuntu 18.04 mirror apt source list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
# main.go
- docker-compose.yaml
## bin
- server
## cmd
- root.go
- server.go
- setup.go