share

package module
v0.41.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

README

= `import "github/shuLhan/share"`
:toc:
:sectanchors:
:sectlinks:
:godoc_base_url: https://pkg.go.dev/github.com/shuLhan/share
:git_base_url: https://github.com/shuLhan/share

{godoc_base_url}[Go documentation^].

A collection of tools, public APIs, and libraries written and for working with
Go programming language.

This library is released every month, usually at the first week of month.


== Public APIs

{godoc_base_url}/api/telegram/bot[**Telegram bot**^]::
Package bot implement the
https://core.telegram.org/bots/api[Telegram Bot API^].


== Command Line Interface

{godoc_base_url}/cmd/epoch[**epoch**^]::
Program epoch print the current date and time (Unix seconds, milliseconds,
nanoseconds, local time, and UTC time) or the date and time based on the
epoch on first parameter.

{godoc_base_url}/cmd/gofmtcomment[**gofmtcomment**^]::
Program to convert multi lines "/**/" comments into single line "//" format.

{godoc_base_url}/cmd/ini[**ini**^]::
Program ini provide a command line interface to get and set values in the
https://godocs.io/github.com/shuLhan/share/lib/ini[INI file format].

{godoc_base_url}/cmd/smtpcli[**smtpcli**^]::
Command line interface to SMTP client protocol.

{godoc_base_url}/cmd/xtrk[**xtrk**^]::
Program xtrk is command line interface to uncompress and/or unarchive a
file.
Supported format: bzip2, gzip, tar, zip, tar.bz2, tar.gz.

{godoc_base_url}/cmd/totp[**totp**^]::
Program to generate Time-based One-time Password using secret key.


== Libraries

{godoc_base_url}/lib/ascii[**ascii**^]::
A library for working with ASCII characters.

{godoc_base_url}/lib/bytes[**bytes**]::
A library for working with slice of bytes.

{godoc_base_url}/lib/clise[**clise**^]::
Package clise implements circular slice.

{godoc_base_url}/lib/contact[**contact**^]::
A library to import contact from Google, Microsoft, or Yahoo.

{godoc_base_url}/lib/crypto[**crypto**^]::
Package crypto provide a wrapper to simplify working with standard crypto
package.

{godoc_base_url}/lib/debug[**debug**^]::
Package debug provide global debug variable, initialized through environment
variable "DEBUG" or directly.

{godoc_base_url}/lib/dns[**dns**^]::
A library
  for working with Domain Name System (DNS) protocol.

{godoc_base_url}/lib/dsv[**dsv**^]::
A library for working with delimited separated value (DSV).

{godoc_base_url}/lib/email[**email**^]::
A library for working with Internet Message Format, as defined in RFC 5322.

{godoc_base_url}/lib/email/dkim[**email/dkim**^]::
A library to parse and create DKIM-Signature header field value, as
defined in RFC 6376.

{godoc_base_url}/lib/email/maildir[**email/maildir**^]::
A library to manage email using maildir format.

{godoc_base_url}/lib/errors[**errors**]::
Package errors provide an error type with Code, Message, and Name.

{godoc_base_url}/lib/floats64[**floats64**^]::
A library for working with slice of float64.

{godoc_base_url}/lib/git[**git**^]::
A wrapper for git command line interface.

{godoc_base_url}/lib/http[**http**^]::
Package http extends the standard http package with simplified routing handler
and builtin memory file system.

{godoc_base_url}/lib/hunspell[**hunspell**^]::
A library to parse the Hunspell file format.

{godoc_base_url}/lib/ini[**ini**^]::
A library for reading and writing INI configuration as defined by Git
configuration file syntax.

{godoc_base_url}/lib/ints[**ints**^]::
A library for working with slice of integer.

{godoc_base_url}/lib/ints64[**ints64**^]::
A library for working with slice of int64.

{godoc_base_url}/lib/io[**io**^]::
A library for simplify reading and watching files.

{godoc_base_url}/lib/json[**json**^]::
Package json extends the capabilities of standard json package.

{godoc_base_url}/lib/math[**math**^]::
Package math provide generic functions working with math.

{godoc_base_url}/lib/math/big[**math/big**^]::
Package big extends the capabilities of standard "math/big" package by
adding custom global precision to Float, Int, and Rat, global rounding
mode, and custom bits precision to Float.

{godoc_base_url}/lib/memfs[**memfs**^]::
A library for mapping file system into memory and to generate an embedded Go
file from it.

{godoc_base_url}/lib/mining[**mining**^]::
A mini library for data mining.

{godoc_base_url}/lib/mining/classifier/cart[**classifier/cart**^]::
An implementation of the Classification and Regression Tree by Breiman, et al.

{godoc_base_url}/lib/mining/classififer/crf[**classififer/crf**^]::
An implementation of the Cascaded Random Forest (CRF) algorithm, by
Baumann, Florian, et al.

{godoc_base_url}/lib/mining/classifier/rf[**classifier/rf**]::
An implementation of ensemble of classifiers using random forest algorithm by
Breiman and Cutler.

{godoc_base_url}/lib/gain/gini[**gain/gini**^]::
A library to calculate Gini gain.

{godoc_base_url}/lib/mining/knn[**knn**^]::
An implementation of the K Nearest Neighbor (KNN) using Euclidian to
compute the distance between samples.

{godoc_base_url}/lib/mining/resampling/lnsmote[**resampling/lnsmote**^]::
An implementation of the Local-Neighborhood algorithm from the paper of
Maciejewski, Tomasz, and Jerzy Stefanowski.

{godoc_base_url}/lib/mining/resampling/smote[**resampling/smote**^]::
An implementation of the Synthetic Minority Oversampling TEchnique (SMOTE).

{godoc_base_url}/lib/mining/tree/binary[**tree/binary**^]::
An implementation of binary tree.

{godoc_base_url}/lib/net[**net**^]::
Constants and library for networking.

{godoc_base_url}/lib/net/html[**html**^]::
Package html extends the golang.org/x/net/html by providing simplified
methods for working with Node.

{godoc_base_url}/lib/numbers[**numbers**^]::
A library for working with integer, float, slice of integer, and slice of
floats.

{godoc_base_url}/lib/os/exec[**os/exec**^]::
Package exec wrap the standar package "os/exec" to simplify calling Run
with stdout and stderr.

{godoc_base_url}/lib/parser[**parser**^]::
Package parser provide a common text parser, using delimiters.

{godoc_base_url}/lib/paseto[**paseto**^]::
A simple, ready to use, implementation of Platform-Agnostic SEcurity TOkens
(PASETO).

{godoc_base_url}/lib/reflect[**reflect**^]::
Package reflect extends the standard reflect package.

{godoc_base_url}/lib/runes[**runes**^]::
A library for working with slice of rune.

{godoc_base_url}/lib/smtp[**smtp**^]::
A library for building SMTP server or client. This package is working in
progress.

{godoc_base_url}/lib/spf[**spf**^]::
Package spf implement Sender Policy Framework (SPF) per RFC 7208.

{godoc_base_url}/lib/sql[**sql**^]::
Package sql extends the standard library "database/sql.DB" that provide common
functionality across DBMS.

{godoc_base_url}/lib/ssh[**ssh**^]::
Package ssh provide a wrapper for golang.org/x/crypto/ssh and a parser for SSH
client configuration specification ssh_config(5).

{godoc_base_url}/lib/ssh/sftp[**ssh/sftp**^]::
Package sftp implement native SSH File Transport Protocol v3.

{godoc_base_url}/lib/strings[**strings**^]::
A library for working with slice of string.

{godoc_base_url}/lib/tabula[**tabula**^]::
A library for working with rows, columns, or matrix (table), or in another
terms working with data set.

{godoc_base_url}/lib/test[**test**^]::
A library for helping with testing.

{godoc_base_url}/lib/text[**text**^]::
A library for working with text.

{godoc_base_url}/lib/text/diff[**text/diff**^]::
Package diff implement text comparison.

{godoc_base_url}/lib/time[**time**^]::
A library for working with time.

{godoc_base_url}/lib/totp[**totp**^]::
Package totp implement Time-Based One-Time Password Algorithm based on RFC
6238.

{godoc_base_url}/lib/websocket[**websocket**^]::
The WebSocket library for server and client. This websocket library has
been tested with autobahn testsuite with 100% success rate.
{git_base_url}/blob/master/lib/websocket/AUTOBAHN.adoc[the status reports^].

{godoc_base_url}/lib/xmlrpc[**xmlrpc**^]::
Package xmlrpc provide an implementation of
http://xmlrpc.com/spec.md[XML-RPC specification].


== Changelog

Latest and full
{git_base_url}/blob/master/CHANGELOG.adoc[CHANGELOG^].


== Credits

* https://github.com/crossbario/autobahn-testsuite[Autobahn testsuite^].

That's it! Happy hacking!

Documentation

Overview

Package share contains public APIs and libraries for working with Go language, and tools written in Go.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of this module.
	Version = `0.41.3`
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
api
slack
Package slack provide a simple API for sending message to Slack using only standard packages.
Package slack provide a simple API for sending message to Slack using only standard packages.
telegram/bot
Package bot implement the Telegram Bot API https://core.telegram.org/bots/api.
Package bot implement the Telegram Bot API https://core.telegram.org/bots/api.
cmd
epoch
Program epoch print the current date and time (Unix seconds, milliseconds, nanoseconds, local time, and UTC time) or the date and time based on the epoch on first parameter.
Program epoch print the current date and time (Unix seconds, milliseconds, nanoseconds, local time, and UTC time) or the date and time based on the epoch on first parameter.
gofilemode
Program gofilemode inspect the Go file mode [1].
Program gofilemode inspect the Go file mode [1].
gofmtcomment
Command gofmtcomment is a program to convert "/**/" comment into "//".
Command gofmtcomment is a program to convert "/**/" comment into "//".
ini
Command ini provide a command line interface to get and set values in the [INI file format].
Command ini provide a command line interface to get and set values in the [INI file format].
sendemail
Program sendemail is command line interface that use lib/email and lib/smtp to send email.
Program sendemail is command line interface that use lib/email and lib/smtp to send email.
smtpcli
Command smtpcli provide a command line interface to SMTP client protocol.
Command smtpcli provide a command line interface to SMTP client protocol.
totp
Program totp generate Time-based One-time Password from secret key.
Program totp generate Time-based One-time Password from secret key.
xtrk
Command xtrk is command line interface to uncompress and/or unarchive a file.
Command xtrk is command line interface to uncompress and/or unarchive a file.
lib
ascii
Package ascii provide a library for working with ASCII characters.
Package ascii provide a library for working with ASCII characters.
bytes
Package bytes provide a library for working with byte or slice of bytes.
Package bytes provide a library for working with byte or slice of bytes.
clise
Package clise implements circular slice.
Package clise implements circular slice.
contact
Package contact provide a library to import contact from Google, Microsoft, and Yahoo.
Package contact provide a library to import contact from Google, Microsoft, and Yahoo.
contact/google
Package google implement Google's contact API v3.
Package google implement Google's contact API v3.
contact/microsoft
Package microsoft implement Microsoft's Live contact API v1.0.
Package microsoft implement Microsoft's Live contact API v1.0.
contact/vcard
Package vcard implement RFC6350 for encoding and decoding VCard formatted data.
Package vcard implement RFC6350 for encoding and decoding VCard formatted data.
contact/yahoo
Package yahoo implement user's contacts import using Yahoo API.
Package yahoo implement user's contacts import using Yahoo API.
crypto
Package crypto provide a wrapper for standard crypto package.
Package crypto provide a wrapper for standard crypto package.
debug
Package debug provide global debug variable, initialized through environment variable "DEBUG" or directly.
Package debug provide global debug variable, initialized through environment variable "DEBUG" or directly.
dns
Package dns implement DNS client and server.
Package dns implement DNS client and server.
dsv
Package dsv is a library for working with delimited separated value (DSV).
Package dsv is a library for working with delimited separated value (DSV).
email
Package email provide a library for working with Internet Message Format as defined by RFC 5322.
Package email provide a library for working with Internet Message Format as defined by RFC 5322.
email/dkim
Package dkim provide a library to parse and create DKIM-Signature header field value, as defined in RFC 6376, DomainKeys Identified Mail (DKIM) Signatures.
Package dkim provide a library to parse and create DKIM-Signature header field value, as defined in RFC 6376, DomainKeys Identified Mail (DKIM) Signatures.
email/maildir
Package maildir provide a library to manage email using maildir format.
Package maildir provide a library to manage email using maildir format.
errors
Package errors provide an error type with code.
Package errors provide an error type with code.
floats64
Package floats64 provide a library for working with slice of 64 bit float.
Package floats64 provide a library for working with slice of 64 bit float.
git
Package git provide a wrapper for git command line interface.
Package git provide a wrapper for git command line interface.
http
Package http implement custom HTTP server with memory file system and simplified routing handler.
Package http implement custom HTTP server with memory file system and simplified routing handler.
hunspell
Package hunspell is a library to parse the Hunspell file format.
Package hunspell is a library to parse the Hunspell file format.
ini
Package ini implement reading and writing INI text format as defined by Git configuration file syntax.
Package ini implement reading and writing INI text format as defined by Git configuration file syntax.
ints
Package ints provide a library for working with slice of integer.
Package ints provide a library for working with slice of integer.
ints64
Package ints64 provide a library for working with slice of 64 bit integer.
Package ints64 provide a library for working with slice of 64 bit integer.
io
Package io extends the standard io library.
Package io extends the standard io library.
json
Package json provide a library for working with JSON.
Package json provide a library for working with JSON.
math
Package math provide generic functions working with math.
Package math provide generic functions working with math.
math/big
Package big extends the capabilities of standard "math/big" package by adding custom global precision to Float and Rat; and global rounding mode, and bits precision to Float.
Package big extends the capabilities of standard "math/big" package by adding custom global precision to Float and Rat; and global rounding mode, and bits precision to Float.
memfs
Package memfs provide a library for mapping file system into memory and/or to embed it inside go source file.
Package memfs provide a library for mapping file system into memory and/or to embed it inside go source file.
mining/classifier/cart
Package cart implement the Classification and Regression Tree by Breiman, et al.
Package cart implement the Classification and Regression Tree by Breiman, et al.
mining/classifier/crf
Package crf implement the cascaded random forest algorithm, proposed by Baumann et.al in their paper:
Package crf implement the cascaded random forest algorithm, proposed by Baumann et.al in their paper:
mining/classifier/rf
Package rf implement ensemble of classifiers using random forest algorithm by Breiman and Cutler.
Package rf implement ensemble of classifiers using random forest algorithm by Breiman and Cutler.
mining/gain/gini
Package gini contain function to calculating Gini gain.
Package gini contain function to calculating Gini gain.
mining/knn
Package knn implement the K Nearest Neighbor using Euclidean to compute the distance between samples.
Package knn implement the K Nearest Neighbor using Euclidean to compute the distance between samples.
mining/resampling
Package resampling provide common interface, constants, and methods for resampling modules.
Package resampling provide common interface, constants, and methods for resampling modules.
mining/resampling/lnsmote
Package lnsmote implement the Local-Neighborhood algorithm from the paper,
Package lnsmote implement the Local-Neighborhood algorithm from the paper,
mining/resampling/smote
Package smote resamples a dataset by applying the Synthetic Minority Oversampling TEchnique (SMOTE).
Package smote resamples a dataset by applying the Synthetic Minority Oversampling TEchnique (SMOTE).
mining/tree/binary
Package binary contain implementation of binary tree.
Package binary contain implementation of binary tree.
mlog
Package mlog implement buffered multi writers of log.
Package mlog implement buffered multi writers of log.
net
Package net provide constants and library for networking.
Package net provide constants and library for networking.
net/html
Package html extends the golang.org/x/net/html by providing simplified methods to Node.
Package html extends the golang.org/x/net/html by providing simplified methods to Node.
numbers
Package numbers provide miscellaneous functions for working with integer, float, slice of integer, and slice of floats.
Package numbers provide miscellaneous functions for working with integer, float, slice of integer, and slice of floats.
os
Package os extend the standard os package to provide additional functionalities.
Package os extend the standard os package to provide additional functionalities.
os/exec
Package exec wrap the standar package "os/exec" to simplify calling Run with stdout and stderr.
Package exec wrap the standar package "os/exec" to simplify calling Run with stdout and stderr.
parser
Package parser provide a common text parser, using delimiters.
Package parser provide a common text parser, using delimiters.
paseto
Package paseto provide a simple, ready to use, opinionated implementation of Platform-Agnostic SEcurity TOkens (PASETOs) v2 as defined in [paseto-rfc-01].
Package paseto provide a simple, ready to use, opinionated implementation of Platform-Agnostic SEcurity TOkens (PASETOs) v2 as defined in [paseto-rfc-01].
reflect
Package reflect extends the standard reflect package.
Package reflect extends the standard reflect package.
runes
Package runes provide a library for working with a single rune or slice of rune.
Package runes provide a library for working with a single rune or slice of rune.
smtp
Package smtp provide a library for building SMTP server and client.
Package smtp provide a library for building SMTP server and client.
spf
Package spf implement Sender Policy Framework (SPF) per RFC 7208.
Package spf implement Sender Policy Framework (SPF) per RFC 7208.
sql
Package sql is an extension to standard library "database/sql.DB" that provide common functionality across DBMS.
Package sql is an extension to standard library "database/sql.DB" that provide common functionality across DBMS.
ssh
Package ssh provide a wrapper for golang.org/x/crypto/ssh and a parser for SSH client configuration specification ssh_config(5).
Package ssh provide a wrapper for golang.org/x/crypto/ssh and a parser for SSH client configuration specification ssh_config(5).
ssh/config
Package config provide the ssh_config(5) parser and getter.
Package config provide the ssh_config(5) parser and getter.
ssh/sftp
Package sftp implement SSH File Transfer Protocol v3 as defined in draft-ietf-secsh-filexfer-02.txt.
Package sftp implement SSH File Transfer Protocol v3 as defined in draft-ietf-secsh-filexfer-02.txt.
strings
Package strings provide a library for working with string or slice of strings.
Package strings provide a library for working with string or slice of strings.
tabula
Package tabula is a Go library for working with rows, columns, or matrix (table), or in another terms working with data set.
Package tabula is a Go library for working with rows, columns, or matrix (table), or in another terms working with data set.
test
Package test provide library for helping with testing.
Package test provide library for helping with testing.
test/mock
Package mock provide a mocking for standard output and standard error.
Package mock provide a mocking for standard output and standard error.
text
Package text provide common a library for working with text.
Package text provide common a library for working with text.
text/diff
Package diff implement text comparison.
Package diff implement text comparison.
time
Package time provide a library for working with time.
Package time provide a library for working with time.
totp
Package totp implement Time-Based One-Time Password Algorithm based on RFC 6238 [1].
Package totp implement Time-Based One-Time Password Algorithm based on RFC 6238 [1].
websocket
Package websocket provide a library for WebSocket server or client based on [RFC6455].
Package websocket provide a library for WebSocket server or client based on [RFC6455].
websocket/examples/cmd/client
Program client provide an example of chat client that connect to WebSocket server.
Program client provide an example of chat client that connect to WebSocket server.
websocket/examples/cmd/server
Program server provide an example of WebSocket server as group chat.
Program server provide an example of WebSocket server as group chat.
xmlrpc
Package xmlrpc provide an implementation of XML-RPC specification, http://xmlrpc.com/spec.md.
Package xmlrpc provide an implementation of XML-RPC specification, http://xmlrpc.com/spec.md.

Jump to

Keyboard shortcuts

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