share

package module
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: BSD-3-Clause Imports: 0 Imported by: 0

README

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta name="theme-color" content="#375EAB" />

		<title>import &#34;github/shuLhan/share&#34;</title>
		<link rel="stylesheet" href="doc/style.css" />
	</head>
	<body>
		<div class="topbar">
			<div class="container">
				<div class="top-heading">
					<a href="/">github.com/shuLhan/share</a>
				</div>
				<div class="menu">
					<a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a>
				</div>
				<div class="menu">
					<a href="/CHANGELOG.html">Changelog</a>
				</div>
			</div>
		</div>

		<div class="page">
			<div class="container">
				<h1>import &#34;github/shuLhan/share&#34;</h1>
				<div id="toc" class="toc">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_command_line_interface">Command Line Interface</a></li>
<li><a href="#_libraries">Libraries</a></li>
<li><a href="#_changelog">Changelog</a></li>
<li><a href="#_documentations">Documentations</a></li>
<li><a href="#_credits">Credits</a></li>
</ul>
</div>
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p><span class="image"><img src="https://godoc.org/github.com/shuLhan/share?status.svg" alt="GoDoc"></span>
<span class="image"><img src="https://goreportcard.com/badge/github.com/shuLhan/share" alt="Go Report Card"></span></p>
</div>
<div class="paragraph">
<p>A collection of libraries and tools written in Go.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_command_line_interface">Command Line Interface</h2>
<div class="sectionbody">
<div class="ulist">
<ul>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/cmd/gofmtcomment"><strong>gofmtcomment</strong></a>: Program to convert
   multilines &#34;/**/&#34; comment into single line &#34;//&#34; format.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/cmd/smtpcli"><strong>smtpcli</strong></a>: Command smtpcli provide a command
   line interface to SMTP client protocol.</p>
</li>
</ul>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_libraries">Libraries</h2>
<div class="sectionbody">
<div class="ulist">
<ul>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/ascii"><strong>ascii</strong></a>: A library for working with ASCII
   characters.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/bytes"><strong>bytes</strong></a>: A library for working with slice of
   bytes.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/contact"><strong>contact</strong></a>: A library to import contact from
   Google, Microsoft, or Yahoo</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/crypto"><strong>crypto</strong></a>: Package crypto provide a wrapper
   for standard crypto package.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/dns"><strong>dns</strong></a>: A library for working with Domain Name
   System (DNS) protocol.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/dsv"><strong>dsv</strong></a>: A library for working with delimited
   separated value (DSV).</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/email"><strong>email</strong></a>: A library for working with Internet
   Message Format as defined by RFC 5322.</p>
<div class="ulist">
<ul>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/email/dkim"><strong>dkim</strong></a>:  A library to parse and create
    DKIM-Signature header field value, as defined in RFC 6376.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/email/maildir"><strong>maildir</strong></a>: A library to manage email
    using maildir format.</p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/errors"><strong>errors</strong></a>: Package errors provide an error
   type with code.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/floats"><strong>floats</strong></a>: A library for working with slice of
   floats.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/git"><strong>git</strong></a>: A wrapper for git command line interface.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/http"><strong>http</strong></a>: Custom HTTP server with memory file
   system and simplified routing handler.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/ini"><strong>ini</strong></a>: A library for reading and writing INI
   configuration as defined by Git configuration file syntax.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/ints"><strong>ints</strong></a>: A library for working with slice of
   integer.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/ints"><strong>ints64</strong></a>: A library for working with slice of
   64 bit integer.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/io"><strong>io</strong></a>: A library for reading and watching file,
   and reading from standard input.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/memfs"><strong>memfs</strong></a>: A library for mapping file system
   into memory.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining"><strong>mining</strong></a>: A library for data mining.</p>
<div class="ulist">
<ul>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/classifier/cart"><strong>classifier/cart</strong></a>:
    Implementation of the Classification and Regression Tree by
    Breiman, et al.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/classifier/crf"><strong>classififer/crf</strong></a>:
    Implementation of the Cascaded Random Forest (CRF) algorithm, proposed by
    Baumann, Florian, et al.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/classifier/rf"><strong>classifier/rf</strong></a>:
    Implementation of ensemble of classifiers using random forest algorithm by
    Breiman and Cutler.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/gain/gini"><strong>gain/gini</strong></a>: A library to
    calculate Gini gain.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/knn"><strong>knn</strong></a>: Implementation of the K
    Nearest Neighbor (KNN) using Euclidian to compute the distance between
    samples.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/math"><strong>math</strong></a>: A library for working with
    mathematic.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/resampling/lnsmote"><strong>resampling/lnsmote</strong></a>:
    Implementation of the Local-Neighborhood algorithm from the paper of
    Maciejewski, Tomasz, and Jerzy Stefanowski.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/resampling/smote"><strong>resampling/smote</strong></a>:
    Implementation of the Synthetic Minority Oversampling TEchnique (SMOTE).</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/mining/tree/binary"><strong>tree/binary</strong></a>: Implementation of
    binary tree.</p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/net"><strong>net</strong></a>: Constants and library for networking.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/numbers"><strong>numbers</strong></a>: A library for working with
   integer, float, slice of integer, and slice of floats.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/runes"><strong>runes</strong></a>: A library for working with slice of
   rune.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/sanitize"><strong>sanitize</strong></a>: A library to sanitize markup
   document into plain text.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/smtp"><strong>smtp</strong></a>: A library for building SMTP server or
   client.
   This package is working in progress.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/strings"><strong>strings</strong></a>: A library for working with slice
   of string.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/tabula"><strong>tabula</strong></a>: A library for working with rows,
   columns, or matrix (table), or in another terms working with data set.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/test"><strong>test</strong></a>: A library for helping with testing.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/text"><strong>text</strong></a>: A library for working with text.</p>
<div class="ulist">
<ul>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/text/diff"><strong>text/diff</strong></a>: Text comparison.</p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/time"><strong>time</strong></a>: A library for working with time.</p>
</li>
<li>
<p><a href="https://godoc.org/github.com/shuLhan/share/lib/websocket"><strong>websocket</strong></a>: Websocket library for server
   and client.  The websocket is tested with autobahn testsuite with 100%
   success rate.
   See <a href="https://github.com/shuLhan/share/tree/master/lib/websocket/AUTOBAHN.adoc">the status
reports</a>.</p>
</li>
</ul>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_changelog">Changelog</h2>
<div class="sectionbody">
<div class="paragraph">
<p><a href="CHANGELOG.html">CHANGELOG</a>.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_documentations">Documentations</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Beside <a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a>, that provides documentation for API in packages,
there are also additional documentations that we can&#39;t include inside source
code due to their scope and limitation of godoc formatting itself.</p>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<div class="title">Note</div>
</td>
<td class="content">
The links below is used to be viewed locally, not through Github.
</td>
</tr>
</table>
</div>
<div class="ulist">
<ul>
<li>
<p><a href="doc/IMF.html">Internet Message Format (RFC 5322)</a></p>
<div class="ulist">
<ul>
<li>
<p><a href="doc/MIME_I_FORMAT.html">MIME Part One: Format of Internet Message
    Bodies (RFC 2045)</a></p>
</li>
<li>
<p><a href="doc/MIME_II_MEDIA_TYPES.html">MIME Part Two: Media Types (RFC 2046)</a></p>
</li>
<li>
<p><a href="doc/MIME_V_CONFORMANCE.html">MIME Part Five: Conformance Criteria and
    Examples (RFC 2049)</a></p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="doc/SASL.html">Simple Authentication and Security Layer (RFC 4422)</a></p>
<div class="ulist">
<ul>
<li>
<p><a href="doc/SASL_PLAIN.html">The PLAIN Simple Authentication and Security
     Layer (SASL) Mechanism (RFC 4616)</a></p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="doc/DKIM_OVERVIEW.html">DomainKeys Identified Mail Service Overview
   (RFC 5585)</a></p>
<div class="ulist">
<ul>
<li>
<p><a href="doc/DKIM_THREATS.html">Analysis of Threats Motivating DKIM (RFC 4686)</a></p>
</li>
<li>
<p><a href="doc/DKIM_DEVOPS.html">DKIM Development, Deployment, and Operations
    (RFC 5863)</a></p>
</li>
<li>
<p><a href="doc/DKIM_SIGNATURES.html">DKIM Signatures (RFC 6376)</a></p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="doc/SMTP.html">Simple Mail Transfer Protocol (RFC5321)</a></p>
<div class="ulist">
<ul>
<li>
<p><a href="doc/ESMTP_DSN.html">Delivery Status Notification (RFC3461-3464)</a></p>
</li>
<li>
<p><a href="doc/ESMTP_TLS.html">SMTP Service Extension for Secure SMTP over
    Transport Layer Security (RFC3207)</a></p>
</li>
<li>
<p><a href="doc/ESMTP_AUTH.html">SMTP Service Extension for Authentication
    (RFC 4954)</a></p>
</li>
</ul>
</div>
</li>
<li>
<p><a href="doc/SPF.html">Sender Policy Framework version 1 (RFC 7208)</a></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>The documentation created using
<a href="https://github.com/shuLhan/ciigo"><code>ciigo</code></a>.
First, install <code>ciigo</code> command line interface,</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ go install github.com/shuLhan/ciigo/cmd/ciigo</pre>
</div>
</div>
<div class="paragraph">
<p>and then run</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ ciigo -template=html.tmpl serve .</pre>
</div>
</div>
<div class="paragraph">
<p>to serve documentation on HTTP server at <a href="http://127.0.0.1:8080 and watch" class="bare">http://127.0.0.1:8080 and watch</a>
changes on documentation files (&#34;.adoc&#34;) and regenerate the HTML
files.</p>
</div>
<div class="paragraph">
<p>To generate HTML files for all asciidoc and markdown files, run</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ ciigo -template=html.tmpl convert .</pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_credits">Credits</h2>
<div class="sectionbody">
<div class="ulist">
<ul>
<li>
<p><a href="https://github.com/crossbario/autobahn-testsuite">Autobahn testsuite</a></p>
</li>
</ul>
</div>
</div>
</div>
			</div>
			
		</div>
		

		<div class="footer">
			Copyright 2019, Shulhan &lt;ms@kilabit.info&gt;. All rights reserved.
			<br />
			Use of this source code is governed by a BSD-style license that can be
			found in the <a href="/LICENSE">LICENSE</a> file.
		</div>
	</body>
</html>

Documentation

Overview

Package share contains common tools and library for working with Go language.

Directories

Path Synopsis
cmd
gofmtcomment
Command gofmtcomment is a program to convert "/**/" comment into "//".
Command gofmtcomment is a program to convert "/**/" comment into "//".
smtpcli
Command smtpcli provide a command line interface to SMTP client protocol.
Command smtpcli provide a command line interface to SMTP client protocol.
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.
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/proofn
Package proofn implement Proofn contact.
Package proofn implement Proofn contact.
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.
ini
Package ini implement reading and writing INI configuration as defined by Git configuration file syntax.
Package ini implement reading and writing INI configuration 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 provide a library for reading and watching file, and reading from standard input.
Package io provide a library for reading and watching file, and reading from standard input.
memfs
Package memfs provide a library for mapping file system into memory and to generate a go file.
Package memfs provide a library for mapping file system into memory and to generate a go 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: Baumann, Florian, et al.
Package crf implement the cascaded random forest algorithm, proposed by Baumann et.al in their paper: Baumann, Florian, et al.
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/math
Package math provide generic functions working with math.
Package math provide generic functions working with math.
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, Maciejewski, Tomasz, and Jerzy Stefanowski.
Package lnsmote implement the Local-Neighborhood algorithm from the paper, Maciejewski, Tomasz, and Jerzy Stefanowski.
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.
net
Package net provide constants and library for networking.
Package net provide constants and library for networking.
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.
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.
sanitize
Package sanitize provide a function to sanitize markup document into plain text.
Package sanitize provide a function to sanitize markup document into plain text.
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.
ssh
Package ssh provide a wrapper for golang.org/x/crypto/ssh.
Package ssh provide a wrapper for golang.org/x/crypto/ssh.
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.
websocket
Package websocket provide a library for creating WebSocket server or client.
Package websocket provide a library for creating WebSocket server or client.
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.

Jump to

Keyboard shortcuts

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