Home / Function/ file_test_proto_init() — gin Function Reference

file_test_proto_init() — gin Function Reference

Architecture documentation for the file_test_proto_init() function in test.pb.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  0adab98c_6ed5_97e2_be03_cf9ff5da5c91["file_test_proto_init()"]
  9f5fa501_b0e4_3a64_1fea_7e224e2d4ef2["init()"]
  9f5fa501_b0e4_3a64_1fea_7e224e2d4ef2 -->|calls| 0adab98c_6ed5_97e2_be03_cf9ff5da5c91
  style 0adab98c_6ed5_97e2_be03_cf9ff5da5c91 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testdata/protoexample/test.pb.go lines 249–298

func file_test_proto_init() {
	if File_test_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
			switch v := v.(*Test); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
			switch v := v.(*Test_OptionalGroup); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_test_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_test_proto_goTypes,
		DependencyIndexes: file_test_proto_depIdxs,
		EnumInfos:         file_test_proto_enumTypes,
		MessageInfos:      file_test_proto_msgTypes,
	}.Build()
	File_test_proto = out.File
	file_test_proto_rawDesc = nil
	file_test_proto_goTypes = nil
	file_test_proto_depIdxs = nil
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does file_test_proto_init() do?
file_test_proto_init() is a function in the gin codebase.
What calls file_test_proto_init()?
file_test_proto_init() is called by 1 function(s): init.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free