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: asn.go
    path of file: ./repos/scan4all/vendor/github.com/projectdiscovery/mapcidr/asn
    
    the code of the file until where you have to start completion: package asn

import (
	"fmt"
	"net"
	"strconv"
	"strings"

	asnmap "github.com/projectdiscovery/asnmap/libs"
	"github.com/projectdiscovery/mapcidr"
)

var DefaultClient *asnmap.Client

func init() {
	var err error
	DefaultClient, err = asnmap.NewClient()
	// DefaultClient must exist
	if err != nil {
		panic(err)
    
func GetIPAddressesAsStream(value string) (chan string, error) {
	cidrs, err := GetCIDRsForASNNum(value)
	if err != nil {
		return nil, err
	}
	ret := make(chan string)
	go func() {
		defer close(ret)
		for _, cidr := range cidrs {
			ips, _ := mapcidr.IPAddressesAsStream(cidr.String())
			for ip := range ips {
				ret <- ip
			}
		}
	}()
	return ret, nil
}