multipart

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 0*69<bchars> bcharsnospace = max 69 chars
	MAX_BOUNDARY_LENGTH = 69
	// custom min boundary length
	MIN_BOUNDARY_LENGTH = 30
)

Variables

This section is empty.

Functions

func GetRelatedContentFields

func GetRelatedContentFields(v any, contentType string) []reflect.Value

func IfMatchIdSetContent

func IfMatchIdSetContent(contentId string, target *[]byte, part *RelatedContent)

func Marshal

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

func MatchRelatedContent

func MatchRelatedContent(contentId string, fields []reflect.Value) []byte

func Unmarshal

func Unmarshal(boundary string, data []byte, v any) error

Types

type RelatedContent

type RelatedContent struct {
	ContentID string
	Content   []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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