pkg

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileType

func GetFileType(name string) string

GetFileType 获取文件类型

func GetKBSize

func GetKBSize(mSize uint32) uint32

Types

type ResponseWriterWrapper

type ResponseWriterWrapper struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter() *ResponseWriterWrapper

func (*ResponseWriterWrapper) Body

func (w *ResponseWriterWrapper) Body() []byte

func (*ResponseWriterWrapper) Code

func (w *ResponseWriterWrapper) Code() int

func (*ResponseWriterWrapper) Header

func (w *ResponseWriterWrapper) Header() http.Header

func (*ResponseWriterWrapper) SetBody

func (w *ResponseWriterWrapper) SetBody(body *bytes.Buffer)

func (*ResponseWriterWrapper) SetCode

func (w *ResponseWriterWrapper) SetCode(code int)

func (*ResponseWriterWrapper) Write

func (w *ResponseWriterWrapper) Write(b []byte) (int, error)

func (*ResponseWriterWrapper) WriteHeader

func (w *ResponseWriterWrapper) WriteHeader(statusCode int)

func (*ResponseWriterWrapper) WriteString

func (w *ResponseWriterWrapper) WriteString(s string) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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