feature: isolate stdlib "unsafe" package (#228)
This commit is contained in:
committed by
Ludovic Fernandez
parent
84ab137ab6
commit
85c11a9ec6
@@ -40,5 +40,4 @@ var Wrapper = map[string]map[string]reflect.Type{}
|
||||
//go:generate ../cmd/goexports/goexports runtime runtime/debug
|
||||
//go:generate ../cmd/goexports/goexports sort strconv strings sync sync/atomic
|
||||
//go:generate ../cmd/goexports/goexports text/scanner text/tabwriter text/template text/template/parse
|
||||
//go:generate ../cmd/goexports/goexports time unsafe
|
||||
//go:generate ../cmd/goexports/goexports unicode unicode/utf16 unicode/utf8
|
||||
//go:generate ../cmd/goexports/goexports time unicode unicode/utf16 unicode/utf8
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// +build go1.11,!go1.12
|
||||
|
||||
package stdlib
|
||||
package unsafe
|
||||
|
||||
// Code generated by 'goexports unsafe'. DO NOT EDIT.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// +build go1.12,!go1.13
|
||||
|
||||
package stdlib
|
||||
package unsafe
|
||||
|
||||
// Code generated by 'goexports unsafe'. DO NOT EDIT.
|
||||
|
||||
11
stdlib/unsafe/unsafe.go
Normal file
11
stdlib/unsafe/unsafe.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package unsafe
|
||||
|
||||
import "reflect"
|
||||
|
||||
// Value stores the map of stdlib values per package
|
||||
var Value = map[string]map[string]reflect.Value{}
|
||||
|
||||
// Wrapper stores the map of stdlib interface wrapper types per package
|
||||
var Wrapper = map[string]map[string]reflect.Type{}
|
||||
|
||||
//go:generate ../../cmd/goexports/goexports unsafe
|
||||
1
yaegi.go
1
yaegi.go
@@ -4,6 +4,7 @@ package main
|
||||
//go:generate go generate github.com/containous/yaegi/cmd/goexports
|
||||
//go:generate go generate github.com/containous/yaegi/stdlib
|
||||
//go:generate go generate github.com/containous/yaegi/stdlib/syscall
|
||||
//go:generate go generate github.com/containous/yaegi/stdlib/unsafe
|
||||
|
||||
import (
|
||||
"flag"
|
||||
|
||||
Reference in New Issue
Block a user