Crazygit

Results 4 comments of Crazygit

for someone who use kotlin can use `mapof()` function ```kotlin fun getChat(): String { val dataset = BarDataset() .setData(65, 59, 80, 81, 56, 55, 40) .addBackgroundColor(Color(255, 99, 132, 0.5)) .addBorderColor(Color(255,...

Can this script auto generate `PersistentKeepalive = x` in client config file ?

There are two different date format in API response now, WTF!🤣 In API `/summary` ``` 2022-11-23T01:25:02.187Z ``` In API `/total/country/` ``` 2020-01-22T00:00:00Z ``` change `jsonDecoder` to below ```swift static let...

恩,现在还是有这个问题。 仔细看了一下代码,不是cache的问题,而是使用cache在这里保存数据不太合适。 原代码使用缓存来保存数据,并且不清理缓存。 ``` go // interval为0, 表示不会清理过期的缓存 func init() { urlcache, _ = cache.NewCache("memory", `{"interval":0}`) } ``` 但是在设置保存短链接时,由于设置的有效时间为0,导致刚刚设置的缓存信息就立即就失效, ``` go err := urlcache.Put(urlmd5, result.UrlShort, 0) ``` 下次再从缓存里面读取时,由于缓存信息已经失效,故直接返回nil。但是代码里面没有做相应的检查,因此报出上面的错误 ``` go...