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: whitelist.go
    path of file: ./repos/arozos/src/mod/auth/accesscontrol/whitelist
    
    the code of the file until where you have to start completion: package whitelist

import (
	"errors"
	"log"
	"strings"

	"imuslab.com/arozos/mod/auth/accesscontrol"
	"imuslab.com/arozos/mod/database"
)

/*
	Whitelist

*/

type WhiteList struct {
	database *database.Database
	Enabled  bool
}

func NewWhitelistManager(sysdb *database.Database) *WhiteList {
	sysdb.NewTable("ipwhitelist")

	whitelistEnabled := false
	if sysdb.KeyExists("ipwhitelist", "en
    
func (wl *WhiteList) ListWhitelistedIpRanges() []string {
	entries, err := wl.database.ListTable("ipwhitelist")
	if err != nil {
		return []string{}
	}
	results := []string{"127.0.0.1"}
	for _, keypairs := range entries {
		thisIpRange := keypairs[0]
		if string(thisIpRange) == "enable" || accesscontrol.ValidateIpRange(string(thisIpRange)) != nil {
			//Reserved key field
			continue
		}
		results = append(results, string(thisIpRange))
	}
	return results
}