Skip to content

Instantly share code, notes, and snippets.

View hi20160616's full-sized avatar
:octocat:
I may be slow to respond.

hi20160616

:octocat:
I may be slow to respond.
View GitHub Profile
package main
import (
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os/exec"
@hi20160616
hi20160616 / configs1.json
Last active November 2, 2021 05:22
configs1
{
"microservice":{
"bbc":{
"title":"bbc",
"domain":"www.bbc.com",
"url":["https://www.bbc.com/zhongwen/simp/topics/ck2l9z0em07t"],
"addr":":20001",
"timeout":"1s",
"heartbeat":"24h"
},
@hi20160616
hi20160616 / db.go
Created August 2, 2021 10:40 — forked from SchumacherFM/db.go
GoLang Database SQL: Selecting an unknown amount of columns from a query. Benchmark results in db_test.go
package main
import (
"database/sql"
"fmt"
_ "github.com/go-sql-driver/mysql"
"log"
)
const (
@hi20160616
hi20160616 / configs.json
Last active November 2, 2021 04:55
Just the list for fetch ms
{
"microservice":{
"voa":{
"title":"voa",
"domain":"www.voachinese.com",
"url":[
"https://www.voachinese.com",
"https://www.voachinese.com/z/1739"
],
"addr":":10001",