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
     
     
  • 相关阅读:
    【NOIP2007】守望者的逃离
    20200321(ABC)题解 by 马鸿儒 孙晨曦
    20200320(ABC)题解 by 王一帆
    20200319(ABC)题解 by 王一帆 梁延杰 丁智辰
    20200314(ABC)题解 by 董国梁 蒋丽君 章思航
    20200309(ABC)题解 by 梁延杰
    20200307(DEF)题解 by 孙晨曦
    20200306(ABC)题解 by 孙晨曦
    20200305(DEF)题解 by 孙晨曦
    20200303(ABC)题解 by 王锐,董国梁
  • 原文地址:https://www.cnblogs.com/rsapaper/p/15736636.html
Copyright © 2011-2022 走看看