diff options
| author | Shulhan <ms@kilabit.info> | 2026-04-05 03:50:32 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-04-05 03:52:47 +0700 |
| commit | 778fd16011ec1d39c41b62372dc65f045183266e (patch) | |
| tree | a6f6f26930c00d8ac3dd7bfa1fb476bd65454833 /lib/http/range_position_test.go | |
| parent | 6fba7b9ce3bcaf4225e5ab774a15ef7364ed1420 (diff) | |
| download | pakakeh.go-778fd16011ec1d39c41b62372dc65f045183266e.tar.xz | |
all: apply go fix
Diffstat (limited to 'lib/http/range_position_test.go')
| -rw-r--r-- | lib/http/range_position_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/http/range_position_test.go b/lib/http/range_position_test.go index 8fc2afd4..83f08358 100644 --- a/lib/http/range_position_test.go +++ b/lib/http/range_position_test.go @@ -54,14 +54,12 @@ func TestParseContentRange(t *testing.T) { } } -func ptrInt64(v int64) *int64 { return &v } - func TestRangePositionContentRange(t *testing.T) { var ( unit = AcceptRangesBytes pos = RangePosition{ - start: ptrInt64(10), - end: ptrInt64(20), + start: new(int64(10)), + end: new(int64(20)), } ) |
