Carson
Carson
key point: > bundle.RegisterUnmarshalFunc("json", json.Unmarshal) ## example code > https://github.com/CarsonSlovoka/go-i18n/blob/d81b3367d02fa33d2d37f37ea05050b335098107/v2/example/basic.go#L220-L235 👆 where [simpleTest](https://github.com/CarsonSlovoka/go-i18n/blob/d81b3367d02fa33d2d37f37ea05050b335098107/v2/example/init.go#L46-L59) ## Other: custom format default is support TOML, YAML, JSON If the above format is not satisfied...
我覺得標題不當,我對你內文的理解是: > 因為你生成的資料都是末尾為0,所以你不需要末尾的那些數字 (反正都是0) 所以這跟偶數比較無關。另外`不便於使用`應該是`不需要`的意思? 總之末尾表示`流水號`,是在毫秒相同的情況下,所衍伸出來的東西, 如果低併發的時間間格都很長,那麼我建議您可以[調整StepBits](https://github.com/bwmarrin/snowflake/blob/7511dd2b95883fdcd3fd35494451124fdc9b06cb/snowflake.go#L23-L25) (這個應該就是你要的開關) 你可以把數值改低一點
我想新增上面的東西到wiki去,我有在[Telegram](https://t.me/joinchat/NlyH6Bch2QARZkArithKvg)詢問,正等候您(@chenhg5)答覆
Hi, 洛克人! 可以在論壇新增第三方的登入(With Google, Github,...)的方案嗎? ([Configuring Google login for Discourse](https://meta.discourse.org/t/configuring-google-login-for-discourse/15858)) 這樣就不用記那麼多帳號了😅
`ncc` not work too. ---- > https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github They tell you > use a tool called [@vercel/ncc](https://github.com/vercel/ncc) to compile your code and modules into one file used for distribution. and step...
see also asticode/go-astilectron/issues/271
A big thank you + 1
```mod go 1.19 require github.com/yuin/goldmark v1.4.14 ``` ```go package _test import ( "github.com/yuin/goldmark" "os" "strings" ) func Example_convert() { m := goldmark.New() source := ` 1. aaa aaa ` source...
README文件「和 flv.js 搭配使用」 > https://github.com/gwuhaolin/livego/blob/150d08fdd6baff0797c0a7b55f0c9d4c008a2c83/README_cn.md#%E5%92%8C-flvjs-%E6%90%AD%E9%85%8D%E4%BD%BF%E7%94%A8 可以幫您連結到 > [音视频技术参考资料](https://github.com/gwuhaolin/blog/issues/5)
> 最近在看你的源代码,写的很好,就是注释太少,好多地方看不懂,能不能帮我解答一下问题: 文件:livego/protocol/rtmp/cache/cache.go 行28:func (cache *Cache) Write(p av.Packet) { 行48:if vh.IsSeq() {//这个是不是指关键帧的时候执行cache.videoSeq.Write(&p) 行58:cache.gop.Write(&p) 这个什么情况下执行 gop 对象是指什么普通帧吗 不要這樣子打,首先程式碼都有版本,您指的行28,在不同的版本可能都會不同,也有可能內容被改過。 我建議您只接去找代碼出來首頁按下T可以搜尋文件,很快就能找到該檔案,接著記得用`sha1 ID`指出該時候的版本(千萬不要偷懶用master等等的分支名稱(隨時都在變)),例如 > 3032dcec1ae889e3ac07546fa6e75c9993a0cb06 ``` https://github.com/gwuhaolin/livego/blob/3032dcec1ae889e3ac07546fa6e75c9993a0cb06/protocol/rtmp/cache/cache.go#L24-L55 以上網址直接貼到github issues上他就會直接幫您帶到該程式碼。 ``` https://github.com/gwuhaolin/livego/blob/3032dcec1ae889e3ac07546fa6e75c9993a0cb06/protocol/rtmp/cache/cache.go#L24 https://github.com/gwuhaolin/livego/blob/3032dcec1ae889e3ac07546fa6e75c9993a0cb06/protocol/rtmp/cache/cache.go#L44-L46 https://github.com/gwuhaolin/livego/blob/3032dcec1ae889e3ac07546fa6e75c9993a0cb06/protocol/rtmp/cache/cache.go#L54 由於上面都只有一兩行,可能很難看出什麼,我下面幫你貼出一小段,可能是你想問的...