com

module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT

README

Common Functions

Run Tests GoDoc codecov Go Report Card

This is an open source project for commonly used functions for the Go programming language.

Feature

  • Random
  • Array
  • File
  • Convert

Benchmrk

goos: linux
goarch: amd64
pkg: github.com/appleboy/com/array
cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
BenchmarkArrayInMap
BenchmarkArrayInMap-2           411962          8343 ns/op        5224 B/op           8 allocs/op
BenchmarkArrayInSlice
BenchmarkArrayInSlice-2        4165724           863.8 ns/op           0 B/op           0 allocs/op
BenchmarkIn
BenchmarkIn-2                  4610620           776.3 ns/op        1792 B/op           1 allocs/op
BenchmarkInArray
BenchmarkInArray-2              388922          9177 ns/op        1624 B/op         101 allocs/op
PASS
ok      github.com/appleboy/com/array    16.040s
goos: linux
goarch: amd64
pkg: github.com/appleboy/com/convert
cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
BenchmarkCountParamsOld
BenchmarkCountParamsOld-2             2575500          1400 ns/op           0 B/op           0 allocs/op
BenchmarkCountParamsNew
BenchmarkCountParamsNew-2            33431834           108.5 ns/op           0 B/op           0 allocs/op
BenchmarkBytesToStrOld01

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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