fastyaml

package module
v0.0.0-...-6866aad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 10 Imported by: 0

README

fastyaml

Super fast YAML parser generator for Go

Build Status GoDoc

YAML is incredibly complex to parse and thus not very fast. But sometimes you want it fast and you know that your input will only contain a small subset of all the YAML features. That's where fastyaml comes in: it generates code for a super fast parser for a very limited subset of the YAML specification.

Features:

  • Did I mention fast?
  • Generates proper Go code
  • Almost no error handling, only use this on input that you know is well-formed
  • Uses the same tag syntax as go-yaml, so can be dropped in where possible with minimal changes

Work in progress

This project is work in progress and not ready for use yet.

License

This library is distributed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(pkg string, obj interface{}) (string, error)

func GenerateFile

func GenerateFile(pkg string, obj interface{}, filename string) error

Types

This section is empty.

Directories

Path Synopsis
bin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL