func (state *ParentActor) Receive(context actor.Context) { switch msg := context.Message().(type) { case Hello: props := actor.FromProducer(NewChildActor) child := context.Spawn(props) child.Tell(msg) } }