pkg

module
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT

README

pkg

常用的一些基础工具包
收录原则
  1. 长时间不更新版本,引入可能存在潜在bug且得不到修复的风险
  2. 不支持泛型
  3. 不支持go生态的新版本

Directories

Path Synopsis
Package fastjson provides fast JSON parsing.
Package fastjson provides fast JSON parsing.
ast
Package ast declares types representing a JavaScript AST.
Package ast declares types representing a JavaScript AST.
file
Package file encapsulates the file abstractions used by the ast & parser.
Package file encapsulates the file abstractions used by the ast & parser.
ftoa
Package ftoa provides ECMAScript-compliant floating point number conversion to string.
Package ftoa provides ECMAScript-compliant floating point number conversion to string.
ftoa/internal/fast
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
parser
Package parser implements a parser for JavaScript.
Package parser implements a parser for JavaScript.
token
Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
unistring
Package unistring contains an implementation of a hybrid ASCII/UTF-16 string.
Package unistring contains an implementation of a hybrid ASCII/UTF-16 string.
goja_nodejs
Package ini provides INI file read and write functionality in Go.
Package ini provides INI file read and write functionality in Go.
Package objx provides utilities for dealing with maps, slices, JSON and other data.
Package objx provides utilities for dealing with maps, slices, JSON and other data.
qr
Package qr encodes QR codes.
Package qr encodes QR codes.
coding
Package coding implements low-level QR coding details.
Package coding implements low-level QR coding details.
gf256
Package gf256 implements arithmetic over the Galois Field GF(256).
Package gf256 implements arithmetic over the Galois Field GF(256).
libqrencode
Package libqrencode wraps the C libqrencode library.
Package libqrencode wraps the C libqrencode library.
Package tablewriter Create & Generate text based table
Package tablewriter Create & Generate text based table
** We are working on testify v2 and would love to hear what you'd like to see in it, have your say here: https://cutt.ly/testify ** Package testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
** We are working on testify v2 and would love to hear what you'd like to see in it, have your say here: https://cutt.ly/testify ** Package testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
http
Package http DEPRECATED USE net/http/httptest
Package http DEPRECATED USE net/http/httptest
mock
Package mock provides a system by which it is possible to mock your objects and verify calls are happening as expected.
Package mock provides a system by which it is possible to mock your objects and verify calls are happening as expected.
require
Package require implements the same assertions as the `assert` package but stops test execution when a test fails.
Package require implements the same assertions as the `assert` package but stops test execution when a test fails.
suite
Package suite contains logic for creating testing suite structs and running the methods on those structs as tests.
Package suite contains logic for creating testing suite structs and running the methods on those structs as tests.
tools
tail
nxadm/tail provides a Go library that emulates the features of the BSD `tail` program.
nxadm/tail provides a Go library that emulates the features of the BSD `tail` program.
tail/examples/01-tailAndPrint
Tail a file and print its contents.
Tail a file and print its contents.
tail/examples/02-closeAndReopen
Tail a file, print its contents, close it and reopen it.
Tail a file, print its contents, close it and reopen it.
tail/examples/03-consumeJSON
Consume and unmarshall JSON.
Consume and unmarshall JSON.
tail/ratelimiter
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends.
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends.
Package uuid provides implementation of Universally Unique Identifier (UUID).
Package uuid provides implementation of Universally Unique Identifier (UUID).
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

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