Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/containx/go-utils
Common utilities for logging, http, token substitution and json/yaml encoding/decoding
https://github.com/containx/go-utils
Last synced: about 1 month ago
JSON representation
Common utilities for logging, http, token substitution and json/yaml encoding/decoding
- Host: GitHub
- URL: https://github.com/containx/go-utils
- Owner: ContainX
- License: apache-2.0
- Created: 2016-07-31T16:51:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-24T05:00:04.000Z (over 6 years ago)
- Last Synced: 2024-06-21T08:59:25.683Z (6 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Utils
Common utilities/function used within many of the ContainX projects
## Packages
### encoding
Provides easily exchangeable JSON and YAML based encoding and decoding.
Objects declared using the `json` meta value are compatible with YAML encoding/decoding.
### httpclient
Easy HTTP wrapper which offers simple encoding/decoding using the `encoding` package
### logger
Extends `logrus` offering category based loggers to allow the multi-module
projects to have different logger levels per category### mockrest
Provides an HTTP server which serves custom responses or status codes. We use this for testing REST clients
### envsubst
Replaces `${TOKEN}` values from a io.reader into a value matching the key.
Provides OOB resolver to replace tokens with environment variables. Provides the ability
to specify a custom resolver to in-place lookups when `${TOKENS}` are found## Building
```
go build ./...
```**Testing:**
```
go test ./...
```## License
This software is licensed under the Apache 2 license, quoted below.
Copyright 2016 ContainX / Jeremy Unruh
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.