rangeutils

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range [2]int64

func NewRange

func NewRange(start int64, end int64) Range

func (Range) ComposeContentRangeHeader

func (this Range) ComposeContentRangeHeader(totalSize string) string

ComposeContentRangeHeader 组合Content-Range Header totalSize 可能是一个数字,也可能是一个星号(*)

func (Range) Convert

func (this Range) Convert(total int64) (newRange Range, ok bool)

func (Range) End

func (this Range) End() int64

func (Range) Length

func (this Range) Length() int64

func (Range) Start

func (this Range) Start() int64

Jump to

Keyboard shortcuts

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