mirror of https://github.com/pulumi/pulumi.git
20 lines
407 B
Go
20 lines
407 B
Go
// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
// FooComponent is a component resource
|
|
type FooComponent struct {
|
|
pulumi.ResourceState
|
|
}
|
|
|
|
func main() {
|
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
fooComponent := &FooComponent{}
|
|
return ctx.RegisterComponentResource("foo:component", "foo", fooComponent)
|
|
})
|
|
}
|