https://pulumi.com logo
#golang
Title
# golang
g

gifted-city-99717

05/28/2020, 10:05 PM
I have a go-related / design question - When defining a custom component, in the examples I’ve seen (eg: s3folder component) - there is an exported args struct and a shadowed, non-exported args struct.
Copy code
type folderArgs struct {
}

type FolderArgs struct {
}
I’ve applied this pattern, but I’m not sure why. Is this a state management thing? I see the
ElementType
function below and see some reflection going on… Where would be the best place to read up on this in pulumi source or docs? Thanks!
3 Views