go-commons

command module
v0.0.0-...-9ed9d1c Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 0 Imported by: 0

README

go-commons

This repository contains a collection of common utility packages written in Go.

Table of Contents

Directory Configuration

go-commons
├── LICENSE
├── README.md
├── go.mod
├── go.sum
└── pkg
    ├── collections
    │   └── map.go
    ├── constants.go
    ├── csv
    │   └── csv_logger.go
    ├── curl
    │   └── curl.go
    ├── db
    │   └── kv_db.go
    ├── file
    │   ├── dir.go
    │   ├── dir_test.go
    │   ├── glob.go
    │   ├── glob_test.go
    │   ├── open
    │   │   └── file_open.go
    │   └── scanner.go
    ├── json
    │   └── pretty.go
    ├── log
    │   ├── csv
    │   │   ├── csv_logger.go
    │   │   ├── csv_logger_test.go
    │   │   └── options.go
    │   └── logger.go
    ├── math
    │   └── rand.go
    ├── stream
    │   ├── base.go
    │   ├── intermediate.go
    │   └── terminal.go
    └── strings
        └── str_case.go

Packages

  • collections: Provides utility functions for working with collections, such as maps.
  • csv: Contains CSV related utility functions, including a CSV logger.
  • curl: Provides a wrapper for making HTTP requests using cURL.
  • db: Contains utility functions for working with key-value databases.
  • file: Provides functions for working with files and directories, including glob pattern matching and file scanning.
  • json: Contains utility functions for pretty printing JSON data.
  • log: Provides a logging framework, including a CSV logger with configurable options.
  • math: Contains utility functions for working with math operations, including random number generation.
  • stream: Provides utility functions for working with stream data, including base, intermediate, and terminal operations.
  • strings: Contains utility functions for manipulating strings, including case conversion.
  • time: Contains utility functions for tracking time.

License

This project is licensed under the MIT License.

configuration diagram (MERMAID):

graph LR
    A[go-commons] --> B[LICENSE]
    A --> C[README.md]
    A --> D[go.mod]
    A --> E[go.sum]
    A --> F[pkg]
    F --> G[collections]
    G --> H[map.go]
    F --> I[constants.go]
    F --> J[csv]
    J --> K[csv_logger.go]
    F --> L[curl]
    L --> M[curl.go]
    F --> N[db]
    N --> O[kv_db.go]
    F --> P[file]
    P --> Q[dir.go]
    P --> R[dir_test.go]
    P --> S[glob.go]
    P --> T[glob_test.go]
    P --> U[open]
    U --> V[file_open.go]
    P --> W[scanner.go]
    F --> X[json]
    X --> Y[pretty.go]
    F --> Z[log]
    Z --> AA[csv]
    AA --> AB[csv_logger.go]
    AA --> AC[csv_logger_test.go]
    AA --> AD[options.go]
    Z --> AE[logger.go]
    F --> AF[math]
    AF --> AG[rand.go]
    F --> AH[stream]
    AH --> AI[base.go]
    AH --> AJ[intermediate.go]
    AH --> AK[terminal.go]
    F --> AL[strings]
    AL --> AM[str_case.go]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
csv
db
env
The above code is a Go package that provides functions for retrieving environment variables with type conversion and fallback values.
The above code is a Go package that provides functions for retrieving environment variables with type conversion and fallback values.
err
log

Jump to

Keyboard shortcuts

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