chore: API and code cleanup. Rename stdlib.Value into stdlib.Symbols (#231)
This commit is contained in:
committed by
Ludovic Fernandez
parent
cc8e05d61b
commit
274c0fc47a
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
Value["unsafe"] = map[string]reflect.Value{
|
||||
Symbols["unsafe"] = map[string]reflect.Value{
|
||||
// function, constant and variable definitions
|
||||
|
||||
// type definitions
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
Value["unsafe"] = map[string]reflect.Value{
|
||||
Symbols["unsafe"] = map[string]reflect.Value{
|
||||
// function, constant and variable definitions
|
||||
|
||||
// type definitions
|
||||
|
||||
@@ -2,10 +2,7 @@ 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{}
|
||||
// Symbols stores the map of unsafe package symbols
|
||||
var Symbols = map[string]map[string]reflect.Value{}
|
||||
|
||||
//go:generate ../../cmd/goexports/goexports unsafe
|
||||
|
||||
Reference in New Issue
Block a user