github.com/searKing/golang/go@v1.2.117/net/resolver/build.options.go (about)

     1  // Copyright 2021 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package resolver
     6  
     7  // BuildWithClientConn append cc to Build
     8  func BuildWithClientConn(cc ClientConn) BuildOption {
     9  	return BuildOptionFunc(func(opt *Build) {
    10  		opt.ClientConn = cc
    11  	})
    12  }