hcl_examples

package module
v0.0.0-...-95ee79b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

hcl-examples

Examples for hcl and Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street  string `hcl:"street"`
	City    string `hcl:"city"`
	Country string `hcl:"country"`
}

type Contact

type Contact struct {
	Name  string `hcl:"name"`
	Phone string `hcl:"phone"`
}

type Order

type Order struct {
	Contact *Contact `hcl:"contact,block"`
	Address *Address `hcl:"address,block"`
	Pizzas  []*Pizza `hcl:"pizza,block"`
}

type Pizza

type Pizza struct {
	Size     string   `hcl:"size"`
	Count    int      `hcl:"count,optional"`
	Toppings []string `hcl:"toppings,optional"`
}

Jump to

Keyboard shortcuts

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