Documentation ¶
Overview ¶
Package text provides support for NDEF Payloads of Text type. It follows the NFC Forum Text Record Type Definition specification (NFCForum-TS-RTD_Text_1.0).
The Payload type implements the RecordPayload interface from ndef, so it can be used as ndef.Record.Payload.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
Payload represents a NDEF Record Payload of type "T", which holds a text field and IANA-formatted language information.
func New ¶
New returns a pointer to a Payload.
The language parameter must be compliant to RFC 3066 (i.e. "en_US"), but no check is performed.
Notes ¶
Bugs ¶
The implementation ignores the guidelines about displaying the text and removing the control characters.
UTF-16 with different byte order, with/without BOM is not tested.