Skip to content

Commit 5aa0c18

Browse files
committed
README.md: add links to functions
1 parent 7a404b1 commit 5aa0c18

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ func main() {
2424
}
2525
```
2626

27-
You can then open objects for inspection with the `Blob()`, `Commit()`,
28-
`Tag()`, or `Tree()` functions:
27+
You can then open objects for inspection with the [`Blob()`][blob],
28+
[`Commit()`][commit], [`Tag()`][tag], or [`Tree()`][tree] functions:
29+
30+
[blob]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.Blob
31+
[commit]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.Commit
32+
[tag]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.Tag
33+
[tree]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.Tree
2934

3035
```go
3136
func main() {
@@ -43,8 +48,13 @@ func main() {
4348
```
4449

4550
Once an object is opened or an instance is held, it can be saved to the object
46-
database using the `WriteBlob()`, `WriteCommit()`, `WriteTag()`, or
47-
`WriteTree()` functions:
51+
database using the [`WriteBlob()`][wblob], [`WriteCommit()`][wcommit],
52+
[`WriteTag()`][wtag], or [`WriteTree()`][wtree] functions:
53+
54+
[wblob]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.WriteBlob
55+
[wcommit]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.WriteCommit
56+
[wtag]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.WriteTag
57+
[wtree]: https://godoc.org/github.com/git-lfs/gitobj#ObjectDatabase.WriteTree
4858

4959
```go
5060
func main() {

0 commit comments

Comments
 (0)