From 176eccff190fec549e2ab468af69c149365a2ba0 Mon Sep 17 00:00:00 2001 From: Alfan Nur Fauzan Date: Mon, 23 Aug 2021 14:54:26 +0700 Subject: [PATCH] use tabs instead --- content_builder.go | 2 +- example/user_add_comment.pps | 2 +- test/user_add_comment.out | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content_builder.go b/content_builder.go index 4372a67..bb2bc54 100644 --- a/content_builder.go +++ b/content_builder.go @@ -31,7 +31,7 @@ func (b *contentBuilder) build(protoFile *descriptorpb.FileDescriptorProto) (str fmt.Fprintln(b.output, "// Code generated by protoc-gen-pubsub-schema. DO NOT EDIT.") fmt.Fprintln(b.output, "// versions:") fmt.Fprintln(b.output, "// protoc-gen-pubsub-schema v1.4.2") - fmt.Fprintf(b.output, "// protoc v%d.%d.%d%s\n", compVersion.GetMajor(), compVersion.GetMinor(), compVersion.GetPatch(), compVersion.GetSuffix()) + fmt.Fprintf(b.output, "// protoc v%d.%d.%d%s\n", compVersion.GetMajor(), compVersion.GetMinor(), compVersion.GetPatch(), compVersion.GetSuffix()) fmt.Fprintln(b.output, "// source:", protoFile.GetName()) fmt.Fprintln(b.output, "") fmt.Fprintf(b.output, `syntax = "%s";`, b.schemaSyntax) diff --git a/example/user_add_comment.pps b/example/user_add_comment.pps index 7c290a7..67cda2c 100644 --- a/example/user_add_comment.pps +++ b/example/user_add_comment.pps @@ -1,7 +1,7 @@ // Code generated by protoc-gen-pubsub-schema. DO NOT EDIT. // versions: // protoc-gen-pubsub-schema v1.4.2 -// protoc v3.17.3 +// protoc v3.17.3 // source: example/user_add_comment.proto syntax = "proto2"; diff --git a/test/user_add_comment.out b/test/user_add_comment.out index 9e08454..34475dc 100644 --- a/test/user_add_comment.out +++ b/test/user_add_comment.out @@ -1,4 +1,4 @@ file: { name: "example/user_add_comment.pps" - content: "// Code generated by protoc-gen-pubsub-schema. DO NOT EDIT.\n// versions:\n// protoc-gen-pubsub-schema v1.4.2\n// protoc v3.17.3\n// source: example/user_add_comment.proto\n\nsyntax = \"proto2\";\n\nmessage UserAddComment {\n required User user = 1;\n required string comment = 2;\n repeated ExampleCommonLabel labels = 3;\n required GoogleProtobufTimestamp timestamp = 101;\n\n message User {\n required string first_name = 1;\n optional string last_name = 2;\n optional bytes avatar = 3;\n optional Location location = 4;\n optional GoogleProtobufTimestamp created_at = 5;\n optional GoogleProtobufTimestamp updated_at = 6;\n\n message Location {\n required double longitude = 1;\n required double latitude = 2;\n }\n\n message GoogleProtobufTimestamp {\n optional int64 seconds = 1;\n optional int32 nanos = 2;\n }\n }\n\n message ExampleCommonLabel {\n optional string key = 1;\n optional string value = 2;\n }\n\n message GoogleProtobufTimestamp {\n optional int64 seconds = 1;\n optional int32 nanos = 2;\n }\n}\n" + content: "// Code generated by protoc-gen-pubsub-schema. DO NOT EDIT.\n// versions:\n// protoc-gen-pubsub-schema v1.4.2\n// protoc v3.17.3\n// source: example/user_add_comment.proto\n\nsyntax = \"proto2\";\n\nmessage UserAddComment {\n required User user = 1;\n required string comment = 2;\n repeated ExampleCommonLabel labels = 3;\n required GoogleProtobufTimestamp timestamp = 101;\n\n message User {\n required string first_name = 1;\n optional string last_name = 2;\n optional bytes avatar = 3;\n optional Location location = 4;\n optional GoogleProtobufTimestamp created_at = 5;\n optional GoogleProtobufTimestamp updated_at = 6;\n\n message Location {\n required double longitude = 1;\n required double latitude = 2;\n }\n\n message GoogleProtobufTimestamp {\n optional int64 seconds = 1;\n optional int32 nanos = 2;\n }\n }\n\n message ExampleCommonLabel {\n optional string key = 1;\n optional string value = 2;\n }\n\n message GoogleProtobufTimestamp {\n optional int64 seconds = 1;\n optional int32 nanos = 2;\n }\n}\n" }