zoukankan      html  css  js  c++  java
  • var _ compiletime assertion 编译时断言

    biz_grpc.pb.go

    // Code generated by protoc-gen-go-grpc. DO NOT EDIT.

    package v1

    import (
        context "context"
        grpc "google.golang.org/grpc"
        codes "google.golang.org/grpc/codes"
        status "google.golang.org/grpc/status"
    )

    // This is a compile-time assertion to ensure that this generated file
    // is compatible with the grpc package it is being compiled against.
    // Requires gRPC-Go v1.32.0 or later.
    const _ = grpc.SupportPackageIsVersion7
     
     
    google.golang.org\grpc@v1.42.0\rpc_util.go
    // The SupportPackageIsVersion variables are referenced from generated protocol
    // buffer files to ensure compatibility with the gRPC version used.  The latest
    // support package version is 7.
    //
    // Older versions are kept for compatibility.
    //
    // These constants should not be referenced from any other code.
    const (
        SupportPackageIsVersion3 = true
        SupportPackageIsVersion4 = true
        SupportPackageIsVersion5 = true
        SupportPackageIsVersion6 = true
        SupportPackageIsVersion7 = true
    )

    const grpcUA = "grpc-go/" + Version
     
     
     

    biz_http.pb.go

    // Code generated by protoc-gen-go-http. DO NOT EDIT.
    // versions:
    // protoc-gen-go-http v2.1.2

    package v1

    import (
        context "context"
        http "github.com/go-kratos/kratos/v2/transport/http"
        binding "github.com/go-kratos/kratos/v2/transport/http/binding"
    )

    // This is a compile-time assertion to ensure that this generated file
    // is compatible with the kratos package it is being compiled against.
    var _ = new(context.Context)
    var _ = binding.EncodeURL

    const _ = http.SupportPackageIsVersion1
     
     
  • 相关阅读:
    使用mt_rand代替rand
    array_diff 不注意的坑
    stackoverflow 技术问答社区
    js检查浏览器是否处于隐身模式
    api数据接口
    图像识别api
    ionic creator(ionic生成器)
    商城金币设计
    details和summary标签
    iOS多线程编程之NSOperation的基本操作
  • 原文地址:https://www.cnblogs.com/rsapaper/p/15736636.html
Copyright © 2011-2022 走看看