test support go1.18 (#2990)
This commit is contained in:
		
							
								
								
									
										10
									
								
								testdata/protoexample/any.go
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								testdata/protoexample/any.go
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
// Copyright 2021 Gin Core Team.  All rights reserved.
 | 
			
		||||
// Use of this source code is governed by a MIT style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:build !go1.18
 | 
			
		||||
// +build !go1.18
 | 
			
		||||
 | 
			
		||||
package protoexample
 | 
			
		||||
 | 
			
		||||
type any = interface{}
 | 
			
		||||
							
								
								
									
										6
									
								
								testdata/protoexample/test.pb.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								testdata/protoexample/test.pb.go
									
									
									
									
										vendored
									
									
								
							@ -231,7 +231,7 @@ func file_test_proto_rawDescGZIP() []byte {
 | 
			
		||||
 | 
			
		||||
var file_test_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
 | 
			
		||||
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 | 
			
		||||
var file_test_proto_goTypes = []interface{}{
 | 
			
		||||
var file_test_proto_goTypes = []any{
 | 
			
		||||
	(FOO)(0),                   // 0: protoexample.FOO
 | 
			
		||||
	(*Test)(nil),               // 1: protoexample.Test
 | 
			
		||||
	(*Test_OptionalGroup)(nil), // 2: protoexample.Test.OptionalGroup
 | 
			
		||||
@ -251,7 +251,7 @@ func file_test_proto_init() {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	if !protoimpl.UnsafeEnabled {
 | 
			
		||||
		file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
		file_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
 | 
			
		||||
			switch v := v.(*Test); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
@ -263,7 +263,7 @@ func file_test_proto_init() {
 | 
			
		||||
				return nil
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
		file_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
 | 
			
		||||
			switch v := v.(*Test_OptionalGroup); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user