code: func (set *IPSet) setIPSetDefaults() {
  	// Setting default values if not present
  	if set.HashSize == 0 {
  		set.HashSize = 1024
  	}
  	if set.MaxElem == 0 {
  		set.MaxElem = 65536
  	}
  	// Default protocol is IPv4
  	if set.HashFamily == "" {
  		set.HashFamily = ProtocolFamilyIPV4
  	}
  	// Default ipset type is "hash:ip,port"
  	if len(set.SetType) == 0 {
  		set.SetType = HashIPPort
  	}
  	if len(set.PortRange) == 0 {
  		set.PortRange = DefaultPortRange
  	}
  }
docs: //setIPSetDefaults sets some IPSet fields if not present to their default values.