diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-06-05 00:08:10 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-06-05 00:08:10 +0700 |
| commit | 1ebe011ad0a068eac79b460e9f050fb690d8ae4e (patch) | |
| tree | d3bcc30fcb1977ccc57d5d6722d1b244a1bc7280 /_doc/index.html | |
| parent | 47ade84e63eb2fd00c1454107d237ab0b7336af5 (diff) | |
| download | pakakeh.go-0.16.0.tar.xz | |
Release share v0.16.0 (2020-06-05)v0.16.0
=== Breaking changes
* dns: refactoring loading hosts and master files
Instead of as methods in Server, we detach the LoadHostDir and
LostMasterDir into functions that return list of filename and their
content.
* dns: disable serving DoH and DoT if port is not set (0)
Previously, if HTTPPort or TLSPort is not set (0) we set it to default
value and keep serving the DNS over HTTP and TLS. Sometimes, user may
want to serve DNS over UDP only.
This changes disable serving DNS over HTTP (DoH) and TLS (DoT) if port
is not set, or 0.
* email: rename ParseAddress function to ParseMailboxes
* http: add parameter "insecure" when creating new client
* ini: fix inconsistencies between empty string and boolean true
In Git specification, an empty variable is equal to boolean true.
This cause inconsistency between empty string and boolean true.
* memfs: simplify the API, add directory parameter to New
This changes add parameter directory to be mounted in New(), so user
did not need to call Mount manually
This cause the Mount method and its sibling, Unmount and IsMounted
become unneeded, so we remove them.
=== Bug fixes
* api/telegram/bot: fix request parameter on GetMyCommands
=== New features
* bytes: add function MergeSpaces
The function MergeSpaces will convert sequences of white space into
single space ' '.
* email: add methods to unmarshal/marshal Mailbox from/to JSON
* email: add function to parse single mailbox
* email: add function to create multipart text and HTML message
* http: support CORS with white list of origin and headers
* ini: add method UnsetAll to remove all variables in section and/or
subsection that match with the key
* ini: add method to Unmarshal ini values to struct
* os/exec: new package to simplify the standard "os/exec"
New extension to standard package is function ParseCommandArgs() that
receive input as string and return itas command and list of arguments.
Unlike strings.Fields() which only separated the field by space,
ParseCommandArgs can detect possible single, double, or back quotes.
Another extension is Run() function that accept the string command
to be executed and their standard output and error.
* sql: add method to migrate database schema
The Migrate method migrate the database using list of SQL files inside
a directory.
Each SQL file in directory will be executed in alphabetical order based on
the last state.
The state of migration will be saved in table "_migration" with the SQL
file name that has been executed and the timestamp.
=== Enhancements
* api/telegram/bot: delete webhook upon setting new webhook
* dns: do not load hidden hosts and master file
Previously, the LoadHostDir and LoadMasterDir load all files inside
the directory without checking if its hidden (starting with dot) or not.
This changes make the hidden file not loaded so one can disable it
temporarily by prefixing it with dot.
* ini: make the add method append the variable after existing same key
* memfs: make the Node Readdir works when calling from generated Go code
Previously, the Go generated code from call to GoGenerate() set only
mapping of path to node. Calling Readdir() using http.File using
root, err := mfs.Open("/")
fis, err := root.Readdir(0)
will return nil on fis.
This changes add all child nodes to generated node.
* websocket: allow "https" scheme on Client's Endpoint
Diffstat (limited to '_doc/index.html')
| -rw-r--r-- | _doc/index.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/_doc/index.html b/_doc/index.html index 5d695960..d1e926a2 100644 --- a/_doc/index.html +++ b/_doc/index.html @@ -451,6 +451,10 @@ written in Go.</p> integer, float, slice of integer, and slice of floats.</p> </li> <li> +<p><a href="https://pkg.go.dev/github.com/shuLhan/share/lib/os/exec"><strong>os/exec</strong></a>: Package exec wrap the standar package +"os/exec" to simplify calling Run with stdout and stderr.</p> +</li> +<li> <p><a href="https://pkg.go.dev/github.com/shuLhan/share/lib/parser"><strong>parser</strong></a>: Package parser provide a common text parser, using delimiters.</p> </li> @@ -639,7 +643,7 @@ First, install <code>ciigo</code> command line interface,</p> </div> <div class="listingblock"> <div class="content"> -<pre>$ ciigo serve doc/</pre> +<pre>$ ciigo serve _doc/</pre> </div> </div> <div class="paragraph"> @@ -652,7 +656,7 @@ files.</p> </div> <div class="listingblock"> <div class="content"> -<pre>$ ciigo convert doc/</pre> +<pre>$ ciigo convert _doc/</pre> </div> </div> </div> |
