瀏覽代碼

fix golint issues in core/lang (#492)

Kevin Wan 3 年之前
父節點
當前提交
059027bc9d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/lang/lang.go

+ 4 - 1
core/lang/lang.go

@@ -1,8 +1,11 @@
 package lang
 
+// Placeholder is a placeholder object that can be used globally.
 var Placeholder PlaceholderType
 
 type (
-	GenericType     = interface{}
+	// GenericType can be used to hold any type.
+	GenericType = interface{}
+	// PlaceholderType represents a placeholder type.
 	PlaceholderType = struct{}
 )