Files
moxa/stdlib/go1_15_hash_crc64.go
Marc Vertes d16bd4bcdb interp: fix package name extraction from import path
The heuristic to generate a package name identifier was incorrect. Now for binary packages, the package identifier is obtained by a symbol, generated by extract, which contains the string argument of package statement in source file. This should ensure an always correct default package identifier. 

Fixes #1095.
2021-05-10 11:20:07 +02:00

29 lines
821 B
Go

// Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT.
// +build go1.15,!go1.16
package stdlib
import (
"go/constant"
"go/token"
"hash/crc64"
"reflect"
)
func init() {
Symbols["hash/crc64/crc64"] = map[string]reflect.Value{
// function, constant and variable definitions
"Checksum": reflect.ValueOf(crc64.Checksum),
"ECMA": reflect.ValueOf(constant.MakeFromLiteral("14514072000185962306", token.INT, 0)),
"ISO": reflect.ValueOf(constant.MakeFromLiteral("15564440312192434176", token.INT, 0)),
"MakeTable": reflect.ValueOf(crc64.MakeTable),
"New": reflect.ValueOf(crc64.New),
"Size": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
"Update": reflect.ValueOf(crc64.Update),
// type definitions
"Table": reflect.ValueOf((*crc64.Table)(nil)),
}
}