jsonp

package
v0.94.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package jsonp JSONP 序列化操作

Index

Constants

View Source
const Mimetype = header.Javascript

Variables

This section is empty.

Functions

func Install

func Install(s web.Server, key, unsetProblem string)

Install 安装 JSONP 的处理方式

key 用于指定回函数名称的查询参数名称; unsetProblem 表示查询参数中没有 key 指定的参数或是参数值为空时的应该返回的 web.Problem

func Marshal

func Marshal(ctx *web.Context, v any) ([]byte, error)

func Unmarshal

func Unmarshal(r io.Reader, v any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL