Ver código fonte

fix golint issues in core/lang (#492)

Kevin Wan 3 anos atrás
pai
commit
059027bc9d
1 arquivos alterados com 4 adições e 1 exclusões
  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{}
 )