Documentation ¶
Overview ¶
Package zettel provides specific types, constants, and functions for zettel.
Index ¶
- func IsBinary(data []byte) bool
- type Content
- func (zc *Content) AsBytes() []byte
- func (zc *Content) AsString() string
- func (zc *Content) Encode() (data, encoding string)
- func (zc *Content) Equal(o *Content) bool
- func (zc *Content) IsBinary() bool
- func (zc *Content) Length() int
- func (zc *Content) SetDecoded(data, encoding string) error
- func (zc *Content) TrimSpace()
- func (zc *Content) Write(w io.Writer) (int, error)
- type Zettel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
Content is just the content of a zettel.
func NewContent ¶
NewContent creates a new content from a string.
func (*Content) IsBinary ¶
IsBinary returns true if the content contains non-unicode values or is, interpreted a text, with a high probability binary content.
func (*Content) SetDecoded ¶
SetDecoded content to the decoded value of the given string.
Directories ¶
Path | Synopsis |
---|---|
Package id provides zettel specific types, constants, and functions about zettel identifier.
|
Package id provides zettel specific types, constants, and functions about zettel identifier. |
Package meta provides the zettel specific type 'meta'.
|
Package meta provides the zettel specific type 'meta'. |
Click to show internal directories.
Click to hide internal directories.