io

package
v0.0.0-...-fc70b83 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package io @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseFile

func CloseFile(f http.File)

CloseFile 关闭文件流

func GetContentType

func GetContentType(fileName string) (extension, contentType string)

GetContentType 根据文件后缀获取文文件类型 @return extension 文件后缀 @return contentType 文件类型

func RespBody

func RespBody(reader io.Reader) ([]byte, string)

func RespReadAll

func RespReadAll(reader io.Reader) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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