Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonUnmarshal fail from a jsonMarshal result of *network.Cookie #7

Closed
bronze1man opened this issue Apr 1, 2020 · 0 comments
Closed

Comments

@bronze1man
Copy link

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
}
@bronze1man bronze1man changed the title jsonUnmarshal fail from a jsonMarshal string of *network.Cookie jsonUnmarshal fail from a jsonMarshal result of *network.Cookie Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant