notionapi
notionapi copied to clipboard
Parse page properties refactor
Excellent repo! It's been a great reference as I'm learning about building API clients and unmarshaling JSONs in Go. Hope this small change can improve the repo. Any feedback on my proposal would be greatly appreciated.
@jomei - thank you for the consideration and patience! I'm still new to Go and contributing to Open Source generally, so apologies for being unclear with my previous PR.
Passing rawMessage
into parsePageProperties
removes the necessity of re-marshaling an interface{}
into a JSON only for it to be parsed back into the correct pageProperty. Would love to hear your thoughts! :)