You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: input.go
    path of file: ./repos/unpoller/pkg/inputunifi
    
    the code of the file until where you have to start completion: // Package inputunifi implements the poller.Input interface and bridges the gap between
// metrics from the unifi library, and the 
    
func (u *InputUnifi) setControllerDefaults(c *Controller) *Controller { //nolint:cyclop,funlen
	// Configured controller defaults.
	if c.SaveSites == nil {
		c.SaveSites = u.Default.SaveSites
	}

	if c.VerifySSL == nil {
		c.VerifySSL = u.Default.VerifySSL
	}

	if c.CertPaths == nil {
		c.CertPaths = u.Default.CertPaths
	}

	if c.HashPII == nil {
		c.HashPII = u.Default.HashPII
	}

	if c.DropPII == nil {
		c.DropPII = u.Default.DropPII
	}

	if c.SaveDPI == nil {
		c.SaveDPI = u.Default.SaveDPI
	}

	if c.SaveIDS == nil {
		c.SaveIDS = u.Default.SaveIDS
	}

	if c.SaveRogue == nil {
		c.SaveRogue = u.Default.SaveRogue
	}

	if c.SaveEvents == nil {
		c.SaveEvents = u.Default.SaveEvents
	}

	if c.SaveAlarms == nil {
		c.SaveAlarms = u.Default.SaveAlarms
	}

	if c.SaveAnomal == nil {
		c.SaveAnomal = u.Default.SaveAnomal
	}

	if c.URL == "" {
		c.URL = u.Default.URL
	}

	if strings.HasPrefix(c.Pass, "file://") {
		c.Pass = u.getPassFromFile(strings.TrimPrefix(c.Pass, "file://"))
	}

	if c.Pass == "" {
		c.Pass = u.Default.Pass
	}

	if c.User == "" {
		c.User = u.Default.User
	}

	if len(c.Sites) == 0 {
		c.Sites = u.Default.Sites
	}

	return c
}