Skip to content

Commit

Permalink
package renamed to fastsrtconv, some code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kaatinga committed May 26, 2022
1 parent 2f01d84 commit 26f7da7
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 78 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![lint workflow](https://github.com/kaatinga/strconv/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/kaatinga/strconv/actions?query=workflow%3Alinter)
[![help wanted](https://img.shields.io/badge/Help%20wanted-True-yellow.svg)](https://github.com/kaatinga/strconv/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)

# The strconv package
# The faststrconv package

The package contain several useful functions intended for conversion between string,
[]byte and different integer types.
Expand Down
2 changes: 1 addition & 1 deletion benchmark_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

import (
"strconv"
Expand Down
12 changes: 6 additions & 6 deletions consts.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package strconv
package faststrconv

const (
MaxByteMask = 0xff
MaxUint16Mask = 0xffff
MaxUint32Mask = 0xffffffff
DigitsMask = 0b110000
ByteLengthMask int = 0b11 // it allows to catch cases faster when the number is too long.
MaxByteMask = 0xff
MaxUint16Mask = 0xffff
MaxUint32Mask = 0xffffffff
DigitsMask = 0b110000
ByteLengthMask = 0b11 // it allows to catch cases faster when the number is too long.
)
62 changes: 0 additions & 62 deletions coverage.txt

This file was deleted.

2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

// IntError - Error type based on int value.
type IntError int
Expand Down
2 changes: 1 addition & 1 deletion generic_strconv.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

type input interface {
~[]byte | ~string
Expand Down
2 changes: 1 addition & 1 deletion generic_strconv_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

import (
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

// DeleteLeadingZeros removes all the leading zeros in the input string.
func DeleteLeadingZeros[I input](input I) I {
Expand Down
2 changes: 1 addition & 1 deletion helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion to_bytes_converters.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

const (
uint10 = 10
Expand Down
2 changes: 1 addition & 1 deletion to_string_converters.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

// Byte2String converts a byte number to string.
func Byte2String(num byte) string {
Expand Down
2 changes: 1 addition & 1 deletion to_string_converters_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package strconv
package faststrconv

import (
"testing"
Expand Down

0 comments on commit 26f7da7

Please sign in to comment.