generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(jsonStr string) (string, error)

Generate is a versatile helper that parses a MongoDB extended JSON string and returns the equivalent gmqb Go code. It auto-detects arrays as Pipelines and objects as Filters.

func GenerateFilter

func GenerateFilter(jsonStr string) (string, error)

GenerateFilter parses a MongoDB extended JSON object string and returns the equivalent gmqb Filter Go code.

func GeneratePipeline

func GeneratePipeline(jsonStr string) (string, error)

GeneratePipeline parses a MongoDB extended JSON array string and returns the equivalent gmqb Pipeline Go code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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