Skip to content

Commit add70f7

Browse files
Merge pull request #5108 from Mr0grog/docs/add-coreapi-overview
Add package overview comments to coreapi
2 parents 9f9ddd5 + 319f006 commit add70f7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

core/coreapi/coreapi.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
Package coreapi provides direct access to the core commands in IPFS. If you are
3+
embedding IPFS directly in your Go program, this package is the public
4+
interface you should use to read and write files or otherwise control IPFS.
5+
6+
If you are running IPFS as a separate process, you should use `go-ipfs-api` to
7+
work with it via HTTP. As we finalize the interfaces here, `go-ipfs-api` will
8+
transparently adopt them so you can use the same code with either package.
9+
10+
**NOTE: this package is experimental.** `go-ipfs` has mainly been developed
11+
as a standalone application and library-style use of this package is still new.
12+
Interfaces here aren't yet completely stable.
13+
*/
114
package coreapi
215

316
import (
@@ -49,7 +62,7 @@ func (api *CoreAPI) Key() coreiface.KeyAPI {
4962
return (*KeyAPI)(api)
5063
}
5164

52-
//Object returns the ObjectAPI interface implementation backed by the go-ipfs node
65+
// Object returns the ObjectAPI interface implementation backed by the go-ipfs node
5366
func (api *CoreAPI) Object() coreiface.ObjectAPI {
5467
return (*ObjectAPI)(api)
5568
}

0 commit comments

Comments
 (0)