ek

package module
v12.61.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

PkgGoDev GoReportCard Codebeat badge GitHub Actions CI Status GitHub Actions CodeQL Status

Platform supportInstallationSub-packagesProjects with EKCI StatusContributingLicense


Auxiliary packages for Go.

Platform support

Currently we support Linux and macOS (except some packages). All packages have stubs for unsupported platforms (for autocomplete).

More info about stubs

Some packages cannot be used on some platforms, like fsutil package, which cannot be used on Windows due to using syscalls, or system sub-packages which require procfs. But you can write code on these platforms with no problem because almost all packages have stubs with information about all constants, variables, and functions available on other platforms. So, for example, Sublime with LSP on Windows will show all information about methods available only on the Linux platform. All descriptions from stubs contain symbol ❗ at the beginning as a mark of unsupported code. Code with stubs can be compiled, but any method invocation from stubs will lead to panic.

Installation

Make sure you have a working Go 1.18+ workspace (instructions), then:

go get github.com/essentialkaos/ek/v12

If you want to update ek to latest stable release, do:

go get -u github.com/essentialkaos/ek/v12

Sub-packages

  • ansi — Package provides methods for working with ANSI/VT100 control sequences
  • cache — Package provides a simple in-memory key:value cache
  • color — Package provides methods for working with colors
  • cron — Package provides methods for working with cron expressions
  • csv — Package with simple (without any checks) CSV parser compatible with default Go parser
  • easing — Package with easing functions (Back, Bounce, Circ, Cubic, Elastic, Expo, Linear, Quad, Quint, Sine)
  • emoji — Package provides methods for working with emojis
  • env — Package provides methods for working with environment variables
  • errutil — Package provides methods for working with errors
  • events — Package provides methods and structs for creating event-driven systems
  • directio — Package provides methods for reading/writing files with direct io
  • fmtc — Package provides methods similar to fmt for colored output
  • fmtutil — Package provides methods for output formatting
  • fmtutil/table — Package contains methods and structs for rendering data in tabular format
  • fsutil — Package provides methods for working with files on POSIX compatible systems (BSD/Linux/macOS)
  • hash — Package hash contains different hash algorithms and utilities
  • httputil — Package provides methods for working with HTTP request/responses
  • initsystem — Package provides methods for working with different init systems (sysv, upstart, systemd)
  • jsonutil — Package provides methods for working with JSON data
  • knf — Package provides methods for working with configuration files in KNF format
  • log — Package with an improved logger
  • lock — Package provides methods for working with lock files
  • lscolors — Package provides methods for colorizing file names based on colors from dircolors
  • mathutil — Package provides some additional math methods
  • netutil — Package provides methods for working with network
  • options — Package provides methods for working with command-line options
  • passwd — Package contains methods for working with passwords
  • path — Package for working with paths (fully compatible with base path package)
  • pid — Package for working with PID files
  • pluralize — Package provides methods for pluralization
  • progress — Package provides methods and structs for creating terminal progress bar
  • rand — Package for generating random data
  • req — Package simplify working with an HTTP requests
  • secstr — Package provides methods and structs for working with protected (secure) strings
  • signal — Package provides methods for handling POSIX signals
  • sliceutil — Package provides methods for working with slices
  • sortutil — Package provides methods for sorting slices
  • spellcheck — Package provides spellcheck based on Damerau–Levenshtein distance algorithm
  • spinner — Package provides methods for creating spinner animation for long-running tasks
  • strutil — Package provides methods for working with strings
  • system/container — Package provides methods for checking container engine info
  • system/exec — Package provides methods for executing commands
  • system/process — Package provides methods for gathering information about active processes
  • system/procname — Package provides methods for changing process name in the process tree
  • system/sensors — Package provide methods for collecting sensors information
  • system — Package provides methods for working with system data (metrics/users)
  • terminal — Package provides methods for working with user input
  • terminal/window — Package provides methods for working terminal window
  • timeutil — Package provides methods for working with time and date
  • tmp — Package provides methods for working with temporary data
  • usage — Package usage provides methods and structs for generating usage info for command-line tools
  • usage/update — Package contains update checkers for different services
  • usage/completion/bash — Package provides methods for generating bash completion
  • usage/completion/fish — Package provides methods for generating fish completion
  • usage/completion/zsh — Package provides methods for generating zsh completion
  • uuid — Package provides methods for generating version 4 and 5 UUID's
  • version — Package version provides methods for working with semver version info

Projects with EK

  • aligo — Utility for checking and viewing Golang struct alignment info
  • Bastion — Utility for temporary disabling access to server
  • bibop — Utility for testing command-line tools
  • bop — Utility for generating bibop tests for RPM packages
  • Deadline — Simple utility for controlling application working time
  • fz — Simple tool for formatting go-fuzz output
  • GoHeft — Utility for listing sizes of all used static libraries compiled into golang binary
  • GoMakeGen — Utility for generating makefiles for golang applications
  • icecli — Command-line tools for Icecast
  • IMC — Simple terminal dashboard for Icecast
  • init-exporter — Utility for exporting services described by Procfile to init system
  • jira-reindex-runner — Application for periodical running Jira re-index process
  • knf — Simple utility for reading values from KNF files
  • MDToc — Utility for generating table of contents for markdown files
  • Mockka — Mockka is a simple utility for mocking HTTP API's
  • perfecto — Tool for checking perfectly written RPM specs
  • pkg.re Morpher — Part of pkg.re service (provides versioned URLs for Go)
  • RBInstall — Utility for installing prebuilt ruby to RBEnv
  • Redis CLI Monitor — Tiny redis client for renamed MONITOR commands
  • Redis Latency Monitor — Tiny Redis client for latency measurement
  • Redis Monitor Top — Tiny Redis client for aggregating stats from MONITOR flow
  • rep — YUM repository management utility
  • rsz — Simple utility for image resizing
  • scratch — Simple utility for generating blank files for Go apps, utilities and packages
  • SHDoc — Tool for viewing and exporting docs for shell scripts
  • Sonar — Utility for showing user Slack status in Atlassian Jira
  • SourceIndex — Utility for generating an index for source archives
  • SSLScan Client — Pretty awesome command-line client for public SSLLabs API
  • swptop — Simple utility for viewing swap consumption of processes
  • uc — Simple utility for counting unique lines
  • updown-badge-server — Service for generating badges for updown.io checks
  • Yo — Command-line YAML processor

CI Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0

Documentation

Overview

Package ek is a set of auxiliary packages

Index

Constants

View Source
const VERSION = "12.61.0"

VERSION is current ek package version

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package ansi provides methods for working with ANSI/VT100 control sequences
Package ansi provides methods for working with ANSI/VT100 control sequences
Package cache provides a simple in-memory key:value cache
Package cache provides a simple in-memory key:value cache
Package color provides methods for working with colors
Package color provides methods for working with colors
Package cron provides methods for working with cron expressions
Package cron provides methods for working with cron expressions
Package csv contains simple CSV parser
Package csv contains simple CSV parser
Package directio provides methods for reading/writing files with direct io
Package directio provides methods for reading/writing files with direct io
Package easing contains easing functions
Package easing contains easing functions
Package emoji provides methods for working with emojis
Package emoji provides methods for working with emojis
Package env provides methods for working with environment variables
Package env provides methods for working with environment variables
Package errutil provides methods for working with errors
Package errutil provides methods for working with errors
Package events provides methods and structs for creating event-driven systems
Package events provides methods and structs for creating event-driven systems
Package fmtc provides methods similar to fmt for colored output
Package fmtc provides methods similar to fmt for colored output
Package fmtutil provides methods for output formatting
Package fmtutil provides methods for output formatting
table
Package table contains methods and structs for rendering data in tabular format
Package table contains methods and structs for rendering data in tabular format
Package fsutil provides methods for working with files on POSIX compatible systems
Package fsutil provides methods for working with files on POSIX compatible systems
Package hash contains different hash algorithms and utilities
Package hash contains different hash algorithms and utilities
Package httputil provides methods for working with HTTP request/responses
Package httputil provides methods for working with HTTP request/responses
Package initsystem provides methods for working with different init systems
Package initsystem provides methods for working with different init systems
Package jsonutil provides methods for working with JSON data
Package jsonutil provides methods for working with JSON data
knf
Package knf provides methods for working with configuration files in KNF format
Package knf provides methods for working with configuration files in KNF format
validators
Package validators provides basic KNF validators
Package validators provides basic KNF validators
validators/fs
Package fs provides KNF validators for checking file-system items
Package fs provides KNF validators for checking file-system items
validators/network
Package network provides KNF validators for checking items related to network
Package network provides KNF validators for checking items related to network
validators/regexp
Package regexp provides KNF validators with regular expressions
Package regexp provides KNF validators with regular expressions
validators/system
Package system provides KNF validators for checking system items (user, groups, network interfaces)
Package system provides KNF validators for checking system items (user, groups, network interfaces)
Package lock provides methods for working with lock files
Package lock provides methods for working with lock files
Package log provides an improved logger
Package log provides an improved logger
Package lscolors provides methods for colorizing file names based on colors from dircolors
Package lscolors provides methods for colorizing file names based on colors from dircolors
Package mathutil provides some additional math methods
Package mathutil provides some additional math methods
Package netutil provides methods for working with network
Package netutil provides methods for working with network
Package options provides methods for working with command-line options
Package options provides methods for working with command-line options
Package passwd contains methods for working with passwords
Package passwd contains methods for working with passwords
Package path provides methods for working with paths (fully compatible with base path package)
Package path provides methods for working with paths (fully compatible with base path package)
Package pid provides methods for working with PID files
Package pid provides methods for working with PID files
Package pluralize provides methods for pluralization
Package pluralize provides methods for pluralization
Package progress provides methods and structs for creating terminal progress bar
Package progress provides methods and structs for creating terminal progress bar
Package rand provides methods for generating random data
Package rand provides methods for generating random data
Package req simplify working with an HTTP requests
Package req simplify working with an HTTP requests
Package secstr provides methods and structs for working with protected (secure) strings
Package secstr provides methods and structs for working with protected (secure) strings
Package signal provides methods for handling POSIX signals
Package signal provides methods for handling POSIX signals
Package sliceutil provides methods for working with slices
Package sliceutil provides methods for working with slices
Package sortutil provides methods for sorting slices
Package sortutil provides methods for sorting slices
Package spellcheck provides spellcheck based on Damerau–Levenshtein distance algorithm
Package spellcheck provides spellcheck based on Damerau–Levenshtein distance algorithm
Package spinner provides methods for creating spinner animation for long-running tasks
Package spinner provides methods for creating spinner animation for long-running tasks
Package strutil provides methods for working with strings
Package strutil provides methods for working with strings
Package system provides methods for working with system data (metrics/users)
Package system provides methods for working with system data (metrics/users)
container
Package container provides methods for checking container engine info
Package container provides methods for checking container engine info
exec
Package exec provides methods for executing commands
Package exec provides methods for executing commands
process
Package process provides methods for gathering information about active processes
Package process provides methods for gathering information about active processes
procname
Package procname provides methods for changing process name in the process tree
Package procname provides methods for changing process name in the process tree
sensors
Package sensors provide methods for collecting sensors information
Package sensors provide methods for collecting sensors information
Package terminal provides methods for working with user input
Package terminal provides methods for working with user input
window
Package window provides methods for working terminal window
Package window provides methods for working terminal window
Package timeutil provides methods for working with time and date
Package timeutil provides methods for working with time and date
Package tmp provides methods and structs for working with temporary data
Package tmp provides methods and structs for working with temporary data
Package usage provides methods and structs for generating usage info for command-line tools
Package usage provides methods and structs for generating usage info for command-line tools
completion/bash
Package bash provides methods for generating bash completion
Package bash provides methods for generating bash completion
completion/fish
Package fish provides methods for generating fish completion
Package fish provides methods for generating fish completion
completion/zsh
Package zsh provides methods for generating zsh completion
Package zsh provides methods for generating zsh completion
man
Package man contains methods for man pages generation
Package man contains methods for man pages generation
update
Package update contains update checkers for different services
Package update contains update checkers for different services
Package uuid contains methods for generating version 4 and 5 UUID's
Package uuid contains methods for generating version 4 and 5 UUID's
Package version provides methods for working with semver version info
Package version provides methods for working with semver version info

Jump to

Keyboard shortcuts

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