chore: API and code cleanup. Rename stdlib.Value into stdlib.Symbols (#231)

This commit is contained in:
Marc Vertes
2019-06-27 12:40:04 +02:00
committed by Ludovic Fernandez
parent cc8e05d61b
commit 274c0fc47a
314 changed files with 383 additions and 401 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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