Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger()
Types ¶
type Encoding ¶
type Encoding int
Parser Ecoding Type
func EncodingFromString ¶
Transform text to representing Encoding element.
Parameters:
text (string) Text to parse
Returns:
parsers.Encoding File Encoding type (JSON, XML, YAML) error Any suitable error risen during code execution
type LocalWriter ¶
func NewLocalWriter ¶
func NewLocalWriter() LocalWriter
func NewLocalWriterCustom ¶
func NewLocalWriterCustom(buffer bytes.Buffer) LocalWriter
type Parser ¶
type Parser interface { // Provides Deserialization from a File. // // Parameters: // filePath (string) File full path // out (interface{}) Pointer to Element to parse // // Returns: // out (interface{}) Element to parse // error Any suitable error risen during code execution DeserializeFromFile(filePath string, out interface{}) error // Provides Deserialization from a byte array. // // Parameters: // bytes ([]byte) Bytes to be parsed // out (interface{}) Pointer to Element to parse // // Returns: // error Any suitable error risen during code execution DeserializeFromBytes(bytes []byte, out interface{}) error // Provides Serialization to a File. // // Parameters: // filePath (string) File full path // mask (common.Type) Generic Element to be serialized // // Returns: // error Any suitable error risen during code execution SerializeToFile(filePath string, mask common.Type) error // Provides Serialization from a byte array. // // Parameters: // mask common.Type) Generic Element to be serialized // // Returns: // []byte Object serialization Byte array // error Any suitable error risen during code execution SerializeToBytes(mask common.Type) ([]byte, error) // Provides implemented encoding format. // // Returns: // Encoding Encoding type GetEncoding() Encoding }
Define Generic Parser Features
Source Files ¶
Click to show internal directories.
Click to hide internal directories.