简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
1、当文件中存在中文字符时,读取文件出现乱码,解决方法:使用"github.com/axgle/mahonia"第三方包解译码。package functionimport ("strings""fmt""io/ioutil""os""github.com/axgle/mahonia")func main() {fi, err := os.Open("E:\\go...
1、当文件中存在中文字符时,读取文件出现乱码,解决方法:使用"github.com/axgle/mahonia"第三方包解译码。package functionimport ("strings""fmt""io/ioutil""os""github.com/axgle/mahonia")func main() {fi, err := os.Open("E:\\go...
查询数据package apiimport ("encoding/json""fmt""net/http""github.com/gin-gonic/gin""github.com/olivere/elastic/v7")type EsInfo struct {Hoststring `json:"host,omitempty"`Userstring `json:"user,omitempty"`P
1.查询字段create_time存在并且字段project为logging的记录GET /index_name/_search{"query": {"bool": {"must": [{"term": {"project": "logging"}},{"exists": {"field": "create_time"}}]}
kibana es创建模板,索引,导入数据,聚合查询