initial import
This commit is contained in:
16
core/lang/lang.go
Normal file
16
core/lang/lang.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package lang
|
||||
|
||||
import "log"
|
||||
|
||||
var Placeholder PlaceholderType
|
||||
|
||||
type (
|
||||
GenericType = interface{}
|
||||
PlaceholderType = struct{}
|
||||
)
|
||||
|
||||
func Must(err error) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
7
core/lang/lang_test.go
Normal file
7
core/lang/lang_test.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package lang
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMust(t *testing.T) {
|
||||
Must(nil)
|
||||
}
|
||||
Reference in New Issue
Block a user