protobuf

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package protobuf 提供对 Google protocol buffers 的支持

Index

Constants

View Source
const Mimetype = "application/protobuf"

Mimetype 当前协议的 mimetype 值

View Source
const Version = "3"

Version 当前支持的协议版本号

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal 提供对 protobuf 的支持

func Unmarshal

func Unmarshal(buf []byte, v any) error

Unmarshal 提供对 protobuf 的支持

Types

This section is empty.

Jump to

Keyboard shortcuts

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