Closed bronze1man closed 4 years ago
follow code will panic:
package main import ( "github.com/chromedp/cdproto/network" "encoding/json" ) func main() { b,err:=json.Marshal(&network.Cookie{}) if err!=nil{ panic(err) } var c *network.Cookie err=json.Unmarshal(b,&c) if err!=nil{ panic(err) } return }
follow code will panic: