code: func ExpandConfigSpec(c *api.Config, node *api.NodeDescription, t *api.Task, dependencies exec.DependencyGetter) (*api.ConfigSpec, bool, error) {
  	if c.Spec.Templating == nil {
  		return &c.Spec, false, nil
  	}
  	if c.Spec.Templating.Name == "golang" {
  		ctx := NewPayloadContextFromTask(node, t, dependencies)
  		configSpec := c.Spec.Copy()
  
  		var err error
  		configSpec.Data, err = expandPayload(&ctx, configSpec.Data)
  		return configSpec, ctx.sensitive, err
  	}
  	return &c.Spec, false, errors.New("unrecognized template type")
  }
docs: // ExpandConfigSpec expands the template inside the config payload, if any.
  // Templating is evaluated on the agent-side.