github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_crypto_sha1.go (about)

     1  // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT.
     2  
     3  //go:build go1.20
     4  // +build go1.20
     5  
     6  package stdlib
     7  
     8  import (
     9  	"crypto/sha1"
    10  	"go/constant"
    11  	"go/token"
    12  	"reflect"
    13  )
    14  
    15  func init() {
    16  	Symbols["crypto/sha1/sha1"] = map[string]reflect.Value{
    17  		// function, constant and variable definitions
    18  		"BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
    19  		"New":       reflect.ValueOf(sha1.New),
    20  		"Size":      reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)),
    21  		"Sum":       reflect.ValueOf(sha1.Sum),
    22  	}
    23  }