blume contains Go libraries and software.
blume/fsio
actually works, instead of infinite looping.blume/yap
actually logs the value part of "key-value" pairs.blume/pred/is
has new function:Ok
, which makesMust
into a predicate.
- removed
blume/auth
. - removed
blume/hnet
. - removed
blume/media
. - removed
blume/cmd/runn
. - removed
blume/cmd/filter
. - removed
blume/cmd/licenser
. - added new library
blume/pred
for predicates.- moved predicate operations from
blume
toblume/pred
. - moved predicates from
blume
toblume/pred/is
andblume/pred/has
.
- moved predicate operations from
- added new library
blume/types
for types.- moved
blume/maps
toblume/types/maps
. - moved string operations from
blume
toblume/types/str
. - moved number related functionality from
blume
toblume/types/num
.
- moved
blume/fsio
changes:- moved
blume/blob
toblume/fsio/blob
blume/fsio/blob
rewritten.- introduced
Traverse
function.- Breadth first search.
- Given a walk function which has control over traversal.
- reimplemented
Find
andFirst
to useTraverse
.
- removed file path operations.
- added new library
blume/fsio/ft
:- provides unified
Type
type to work with file extensions and mime types - provides predicates to check the
Kind
of aType
; Video, Audio, Media, Code, ...
- provides unified
- moved
- moved
blume/auth/fwauth
toblume/cmd/fwauth
.- rewrote
blume/cmd/fwauth
.
- rewrote
blume/types/maps
changes:- removed internal type
link
. - removed
Expiring
type. - introduced
Validated
type.- takes a
func(K, V) bool
as an argument. - called both on
Get
andSet
operations. - invalid KV pair on
Set
is a noop and returnsfalse
. - invalid KV pair on
Get
removes the pair from the map.
- takes a
- introduced
Map
interface.
- removed internal type
blume
changes:- removed everything.
- introduced
Or[A any](A, A, ...any) A
function.- given two values,
A
mustcomparable
. The non-zero value is returned. Otherwise, - the last value is checked for
bool == true
orerror != nil
.
- given two values,
- introduced
Must[A any]A, ...any) A
function.- the last value is checked for
bool == true
orerror != nil
.
- the last value is checked for
- introduced
Buf(any) *bytes.Buffer
.- takes in anything, and attempts to turn it into a
*bytes.Buffer
. - if
string
, turned to bytes to create the buffer. - if
[]byte
, used to create the buffer. - if
io.Reader
, copies contents to the buffer - otherwise return an empty buffer.
- takes in anything, and attempts to turn it into a
- Bloat
- Spaghetti