Files
moxa/stdlib/go1_19_archive_tar.go
Marc Vertes 0e3ea5732a update to go1.20
* update to go1.20

* lint

* fix: ci

---------

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-02-03 14:32:05 +01:00

51 lines
2.4 KiB
Go

// Code generated by 'yaegi extract archive/tar'. DO NOT EDIT.
//go:build go1.19 && !go1.20
// +build go1.19,!go1.20
package stdlib
import (
"archive/tar"
"go/constant"
"go/token"
"reflect"
)
func init() {
Symbols["archive/tar/tar"] = map[string]reflect.Value{
// function, constant and variable definitions
"ErrFieldTooLong": reflect.ValueOf(&tar.ErrFieldTooLong).Elem(),
"ErrHeader": reflect.ValueOf(&tar.ErrHeader).Elem(),
"ErrWriteAfterClose": reflect.ValueOf(&tar.ErrWriteAfterClose).Elem(),
"ErrWriteTooLong": reflect.ValueOf(&tar.ErrWriteTooLong).Elem(),
"FileInfoHeader": reflect.ValueOf(tar.FileInfoHeader),
"FormatGNU": reflect.ValueOf(tar.FormatGNU),
"FormatPAX": reflect.ValueOf(tar.FormatPAX),
"FormatUSTAR": reflect.ValueOf(tar.FormatUSTAR),
"FormatUnknown": reflect.ValueOf(tar.FormatUnknown),
"NewReader": reflect.ValueOf(tar.NewReader),
"NewWriter": reflect.ValueOf(tar.NewWriter),
"TypeBlock": reflect.ValueOf(constant.MakeFromLiteral("52", token.INT, 0)),
"TypeChar": reflect.ValueOf(constant.MakeFromLiteral("51", token.INT, 0)),
"TypeCont": reflect.ValueOf(constant.MakeFromLiteral("55", token.INT, 0)),
"TypeDir": reflect.ValueOf(constant.MakeFromLiteral("53", token.INT, 0)),
"TypeFifo": reflect.ValueOf(constant.MakeFromLiteral("54", token.INT, 0)),
"TypeGNULongLink": reflect.ValueOf(constant.MakeFromLiteral("75", token.INT, 0)),
"TypeGNULongName": reflect.ValueOf(constant.MakeFromLiteral("76", token.INT, 0)),
"TypeGNUSparse": reflect.ValueOf(constant.MakeFromLiteral("83", token.INT, 0)),
"TypeLink": reflect.ValueOf(constant.MakeFromLiteral("49", token.INT, 0)),
"TypeReg": reflect.ValueOf(constant.MakeFromLiteral("48", token.INT, 0)),
"TypeRegA": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)),
"TypeSymlink": reflect.ValueOf(constant.MakeFromLiteral("50", token.INT, 0)),
"TypeXGlobalHeader": reflect.ValueOf(constant.MakeFromLiteral("103", token.INT, 0)),
"TypeXHeader": reflect.ValueOf(constant.MakeFromLiteral("120", token.INT, 0)),
// type definitions
"Format": reflect.ValueOf((*tar.Format)(nil)),
"Header": reflect.ValueOf((*tar.Header)(nil)),
"Reader": reflect.ValueOf((*tar.Reader)(nil)),
"Writer": reflect.ValueOf((*tar.Writer)(nil)),
}
}