Explorar o código

fix golint issues in core/lang (#492)

Kevin Wan %!s(int64=3) %!d(string=hai) anos
pai
achega
059027bc9d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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{}
 )