From 652ac620b149aae0d7669f96b76a0a84413c1de8 Mon Sep 17 00:00:00 2001
From: Steven Allen <steven@stebalien.com>
Date: Thu, 11 Jan 2018 14:02:13 -0800
Subject: [PATCH] golint: documentation fixes

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
---
 commands/request.go       | 2 +-
 core/commands/env.go      | 2 ++
 core/corehttp/commands.go | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/commands/request.go b/commands/request.go
index 0962e0080..b05c16550 100644
--- a/commands/request.go
+++ b/commands/request.go
@@ -65,7 +65,7 @@ func (c *Context) NodeWithoutConstructing() *core.IpfsNode {
 	return c.node
 }
 
-// RootContext returns the node's context.
+// Context returns the node's context.
 func (c *Context) Context() context.Context {
 	n, err := c.GetNode()
 	if err != nil {
diff --git a/core/commands/env.go b/core/commands/env.go
index 42fad0ecc..d884292e3 100644
--- a/core/commands/env.go
+++ b/core/commands/env.go
@@ -8,6 +8,7 @@ import (
 	"github.com/ipfs/go-ipfs/repo/config"
 )
 
+// GetNode extracts the node from the environment.
 func GetNode(env interface{}) (*core.IpfsNode, error) {
 	ctx, ok := env.(*commands.Context)
 	if !ok {
@@ -17,6 +18,7 @@ func GetNode(env interface{}) (*core.IpfsNode, error) {
 	return ctx.GetNode()
 }
 
+// GetConfig extracts the config from the environment.
 func GetConfig(env interface{}) (*config.Config, error) {
 	ctx, ok := env.(*commands.Context)
 	if !ok {
diff --git a/core/corehttp/commands.go b/core/corehttp/commands.go
index 5ab953ecb..b9d2efa88 100644
--- a/core/corehttp/commands.go
+++ b/core/corehttp/commands.go
@@ -37,6 +37,7 @@ or
 	ipfs daemon --api-http-header 'Access-Control-Allow-Origin: *'
 `
 
+// APIPath is the path at which the API is mounted.
 const APIPath = "/api/v0"
 
 var defaultLocalhostOrigins = []string{
-- 
GitLab