package
Version:
v0.48.0
Opens a new window with list of versions in this module.
Published: Feb 13, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package jsonp JSONP 序列化操作
JSONP 返回 JSONP 对象
采用与 JSON 相同的解析方式。
callback 表示回调的函数名称,如果为空,则直接返回 data,
在输出时也将被当作普通的 JSON 输出。
Marshal 输出 JSONP 对象
v 如果是由 JSONP 构建的对象,则返回带 callback 的 js 函数;
如果是普通的对象,则采用 json.Marshal 将其转换成普通的 JSON 对象返回;
Source Files
¶
Click to show internal directories.
Click to hide internal directories.