I have a go-related / design question - When defin...
# golang
g
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!