# README
Go common lib
Tis module used as smaple module for most popular func.
ENV parameters
- N/a
File parameters application.yml
- N/a
Lint, Test & Coverage
-
Install linter
go install github.com/golangci/golangci-lint/cmd/golangci-lint
run check
golangci-lint run > checkstyle.xml
-
Run test
go test -v -coverpkg=./... -coverprofile=profile.cov ./... -json > test_report.json
-
Coverage
go tool cover -func profile.cov
Methods
Method | Description | Params | Result |
---|---|---|---|
SliceContain | A function to check slice contain item string | slice []string, item string | bool |
UpdateList | A function for update exist slice not contain item string | slice []string, item string | []string |
StringFromList | A function convert slice to sting | list []string | st string |
UpdateStructList | A function for update exist slice values from anothe slice | main []string, in []string | []string |
CalcHash | A function for calculate string hash sum by sha256 | aStr string | string |
SortedMap | A function for sort slice map's | m []map[string]string | out []map[string]string |
ListConvert | A function for convert interface to slice strings | in interface{} | []string, error |
UpdateMapList | A function for update slince map by not exist map | sliceMaps []map[string]string, itemMap map[string]string | []map[string]string |
StandardizeSpaces | A function for trim first & last space | s string | string |
UpdateListBySplit | A function for update slice string by splited values use slice spliters string | slice []string, item string, spliters []string | []string |
MapListConvert | A function for convert interface to slice map | in interface{} | []map[string]string, error |
# Functions
A function for calculate string hash sum by sha256 The return value is hash string.
A function to check slice contain item string The return value is bool.
A function for convert interface to slice map The return value is slice map or error.
A function for convert interface to slice strings The return value is slice strings.
A function for decode one interface values to anothe The return set multi atributes to span.
A function for calculate string hash sum by sha256 The return value is hash string.
A function for convert interface to slice strings The return value is slice strings.
A function for convert interface to slice map The return value is slice map or error.
A function to check slice contain item string The return value is bool.
A function for sort slice map`s The return value is sorted slice.
A function for sort slice map`s The return value is sorted slice.
A function for set multi atributes to span The return set multi atributes to span.
A function for trim first & last space The return value is trimed string.
A function convert slice to sting The return value is string.
A function convert slice to sting The return value is string.
A function for trim first & last space The return value is trimed string.
A function for update exist slice not contain item string The return value is new slice.
A function for update slice string by splited values use slice spliters string The return value is slice strings.
A function for update slince map by not exist map The return value is updated slice.
A function for update slince map by not exist map The return value is updated slice.
A function for update exist slice not contain item string The return value is new slice.
A function for update slice string by splited values use slice spliters string The return value is slice strings.
A function for update exist slice values from anothe slice The return value is updated slice.
A function for update exist slice values from anothe slice The return value is updated slice.
# Variables
No description provided by the author