package
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Oct 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func Unmarshal(src []byte, v interface{}) error
Unmarshal 对于爬虫,反序列化是浪费资源的事,
应尽量使用 gjson 完成对 json 的解析,实在无法
用 gjson 解析时,再用此方法进行反序列化。
这里使用性能更高的第三方库完成反序列化。
func UnmarshalFromString(src string, v interface{}) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.