摘要: #include <unistd.h> #include <stdio.h> int main() { enum {PATHMAX = 256}; char buf[PATHMAX]; int val; char *cwd; cwd = getcwd(buf, PATHMAX); /*remembe 阅读全文
posted @ 2021-07-05 11:14 东宫得臣 阅读(129) 评论(0) 推荐(0) 编辑
摘要: package mypackage import ( "encoding/json" "fmt" "io/ioutil" "log" "os" "database/sql" _ "github.com/lib/pq" ) func LoadConfig(path string) Config { j 阅读全文
posted @ 2021-07-05 09:25 东宫得臣 阅读(995) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/json" "fmt" "io/ioutil" "os" "strconv" "time" ) type ResponseStruct struct { Signs []Sign `json:"signs"` } type Sign s 阅读全文
posted @ 2021-07-05 09:04 东宫得臣 阅读(169) 评论(0) 推荐(0) 编辑