func main() {
	config.SetConsumerService(tripleGreeterImpl)
	rootConfig := config.NewRootConfigBuilder().
		SetConsumer(config.NewConsumerConfigBuilder().
			SetRegistryIDs("zkRegistryKey").
			AddReference("GreeterClientImpl", config.NewReferenceConfigBuilder().
				SetInterface("com.apache.dubbo.sample.basic.IGreeter").
				SetProtocol("tri").
				Build()).
			Build()).
		AddRegistry("zkRegistryKey", config.NewRegistryConfigWithProtocolDefaultPort("zookeeper")).
		Build()
	if err := rootConfig.Init(); err != nil {
		panic(err)
	}
	logger.Info("start to test dubbo")
	req := &api.HelloRequest{
		Name: "laurence",
	}
	reply, err := tripleGreeterImpl.SayHello(context.Background(), req)
	if err != nil {
		logger.Error(err)
	}
	logger.Infof("client response result: %v\n", reply)
}
There is no need to export DUBBO_GO_CONFIG_PATH, as you are using config api to set config
package main
import (
	"context"
)
import (
	"dubbo.apache.org/dubbo-go/v3/common/logger"
	"dubbo.apache.org/dubbo-go/v3/config"
	_ "dubbo.apache.org/dubbo-go/v3/imports"
)
import (
	"github.com/apache/dubbo-go-samples/api"
)
var tripleGreeterImpl = new(api.GreeterClientImpl)