Sfoglia il codice sorgente

fix golint issues in core/lang (#492)

Kevin Wan 3 anni fa
parent
commit
059027bc9d
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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{}
 )