Skip to content

Commit 68415e7

Browse files
committed
Add some more Markdown annotations.
1 parent 44fa767 commit 68415e7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Go support for Protocol Buffers - Google's data interchange format
1+
# Go support for Protocol Buffers
2+
3+
Google's data interchange format.
24
Copyright 2010 The Go Authors.
35
https://github.com/golang/protobuf
46

@@ -20,8 +22,7 @@ To use this software, you must:
2022
for details or, if you are using gccgo, follow the instructions at
2123
https://golang.org/doc/install/gccgo
2224
- Grab the code from the repository and install the proto package.
23-
The simplest way is to run
24-
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
25+
The simplest way is to run `go get -u github.com/golang/protobuf/{proto,protoc-gen-go}`.
2526
The compiler plugin, protoc-gen-go, will be installed in $GOBIN,
2627
defaulting to $GOPATH/bin. It must be in your $PATH for the protocol
2728
compiler, protoc, to find it.
@@ -102,6 +103,7 @@ for a protocol buffer variable v:
102103

103104
Consider file test.proto, containing
104105

106+
```proto
105107
package example;
106108
107109
enum FOO { X = 17; };
@@ -114,9 +116,11 @@ Consider file test.proto, containing
114116
required string RequiredField = 5;
115117
}
116118
}
119+
```
117120

118121
To create and play with a Test object from the example package,
119122

123+
```go
120124
package main
121125

122126
import (
@@ -149,7 +153,7 @@ To create and play with a Test object from the example package,
149153
}
150154
// etc.
151155
}
152-
156+
```
153157

154158
## Parameters ##
155159

0 commit comments

Comments
 (0)