-
golang http note
没看懂这是啥, 先继续往下看. TrailerPrefix is a magic prefix for ResponseWriter.Header map keys that, if present, signals that the map entry is actually for the response trailers, and not the response headers....
-
情绪
我还是抑制住, 不想让你觉得被打扰. 可是我有点事情就想告诉你, 看到微信有消息就多少希望是你的.
-
ReplaceAll in go
go文档的https://golang.org/pkg/regexp/#Regexp.ReplaceAll里面说: func (*Regexp) ReplaceAll func (re *Regexp) ReplaceAll(src, repl []byte) []byte ReplaceAll returns a copy of src, replacing matches of the Regexp with the replacement text repl. Inside repl, $...
-
难受
我抑制住一切想和你说的话
-
elasticsearch script中的value values区别
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-scripting-fields.html 这里说明了script中如何取文档中的值, 但是并没有说明value和values的差别. 没有找到官方的说明, 测了一下, 对于list值, values会返回所有数据, value只返回第一个值. 所以在contains时, 用value可能不会得到正确的结果. 如果不是list, 返回结果都是一样的. POST lesson_v20170823/_search?q=lessonID:44 { "took": 5, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": {...
-
原来我喜欢的不是这味道
原来我不喜欢螺蛳粉, 我只是喜欢那里的人
-
go pprof
import _ "net/http/pprof" go func() { http.ListenAndServe("0.0.0.0:8080", nil) }()
-
拱猪
昨天打了一天拱猪, 有几次牌都出错了, 导致输钱或者没赢钱~ 觉得自己精力和注意力都大不如前了. 以后还是要多运动,早睡觉,不久坐,遇到SB时要尽量平复心情.
-
Life
-
macos上面import matplotlib出错
报错: RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See...