goyamlc

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

goyamlc

go yaml marshaler with comments (WIP).

Example

type Foo struct {
    // some field
    x string `yaml:"x"`
    // some other field
    y string `yaml:"y"`
}

Would generate:

foo:
  # some field
  x: string
  # some other field
  y: string

See the example for a more complete example which includes nested types.

Upcoming Features

  • Make gen order deterministic
  • Ignore unexported fields
  • Improve how map types are represented

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
test

Jump to

Keyboard shortcuts

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