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: addrs_resolver.go
    path of file: ./repos/gim/pkg/grpclib/resolver/addrs
    
    the code of the file until where you have to start completion: package addrs

import (
	"strings"

	"google.golang.org/grpc/resolver"
)

// 实现多个IP地址解析，比如，addrs:///127.0.0.1:50000,127.0.0.1:50001
func init() {
	RegisterResolver()
}

func RegisterResolver() {
	resolver.Register(NewAddrsBuilder())
}

type 
    
func (b *addrsBuilder) Build(target resolver.Target, clientConn resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) {
	ips := strings.Split(target.Endpoint, ",")

	state := resolver.State{
		Addresses: getAddrs(ips),
	}
	_ = clientConn.UpdateState(state)
	return &addrsResolver{
		addrs:      ips,
		clientConn: clientConn,
	}, nil
}