| | |
Features
Convert YAML to Go Struct online, with support for parsing and preserving YAML comments.
Example
name: Sample Project # Project name
version: 1.0.0 # Version number
description: This is a sample project description # Project description
authors:
- name: John Doe # Author name
- name: Jane Smith # Author name
Generated Result
type Authors struct {
Name string `json:"name" yaml:"name"` // Author name
}
type GenerateObj struct {
Name string `json:"name" yaml:"name"` // Project name
Version string `json:"version" yaml:"version"` // Version number
Description string `json:"description" yaml:"description"` // Project description
Authors []Authors `json:"authors" yaml:"authors"`
}