go-utils

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT

README

Keboola Go Utils

  • deepcopy
    • Deep copy and deep translate of a value, extended version of hvoecking gist.
    • Usage import "github.com/keboola/go-utils/pkg/deepcopy".
  • orderedmap
  • testproject
    • Locking of Keboola Projects for E2E parallel tests.
    • Usage import "github.com/keboola/go-utils/pkg/testproject".
  • wildcards
    • Helper to compare text with wildcards in test.
    • Usage import "github.com/keboola/go-utils/pkg/wildcards".

Development

Clone the repository and run dev container:

docker-compose run --rm -u "$UID:$GID" --service-ports dev bash

Run lint and tests in container:

make lint
make tests

Run HTTP server with documentation:

make godoc

Open http://localhost:6060/pkg/github.com/keboola/go-utils/pkg/ in browser.

License

MIT licensed, see LICENSE file.

Directories

Path Synopsis
pkg
deepcopy
Package deepcopy implements deep copy and deep translate of a value.
Package deepcopy implements deep copy and deep translate of a value.
orderedmap
Package orderedmap is extended version of: https://github.com/iancoleman/orderedmap Differences: - Additional methods (GetNested, SetNested, ToMap, ...).
Package orderedmap is extended version of: https://github.com/iancoleman/orderedmap Differences: - Additional methods (GetNested, SetNested, ToMap, ...).
testproject
Package testproject implements locking of Keboola Projects for E2E parallel tests.
Package testproject implements locking of Keboola Projects for E2E parallel tests.
wildcards
Package wildcards implements helper to compare text with wildcards in tests.
Package wildcards implements helper to compare text with wildcards in tests.

Jump to

Keyboard shortcuts

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