From b85db994fd4fe662d9c1353839538ac50a8e8923 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Tue, 28 Aug 2018 15:53:14 +0300 Subject: [PATCH 1/3] Test with Go 1.11 and on macOS. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3ae590c..b7636b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,14 @@ language: go go_import_path: neugram.io/ng go: - 1.10.x + - 1.11.x - master os: - linux + - osx matrix: fast_finish: true - script: - ./.ci-test From 0bab78361cb0849422807d5b62aba963151c89df Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Tue, 28 Aug 2018 15:53:44 +0300 Subject: [PATCH 2/3] Format source code with gofmt from Go 1.11. --- eval/gowrap/wrapbuiltin/wrap_math.go | 174 ++++----- eval/gowrap/wrapbuiltin/wrap_unicode.go | 454 ++++++++++++------------ ng_test.go | 4 + 3 files changed, 318 insertions(+), 314 deletions(-) diff --git a/eval/gowrap/wrapbuiltin/wrap_math.go b/eval/gowrap/wrapbuiltin/wrap_math.go index 03135d3..5c727fd 100644 --- a/eval/gowrap/wrapbuiltin/wrap_math.go +++ b/eval/gowrap/wrapbuiltin/wrap_math.go @@ -13,95 +13,95 @@ import ( var pkg_wrap_math = &gowrap.Pkg{ Exports: map[string]reflect.Value{ - "Abs": reflect.ValueOf(wrap_math.Abs), - "Acos": reflect.ValueOf(wrap_math.Acos), - "Acosh": reflect.ValueOf(wrap_math.Acosh), - "Asin": reflect.ValueOf(wrap_math.Asin), - "Asinh": reflect.ValueOf(wrap_math.Asinh), - "Atan": reflect.ValueOf(wrap_math.Atan), - "Atan2": reflect.ValueOf(wrap_math.Atan2), - "Atanh": reflect.ValueOf(wrap_math.Atanh), - "Cbrt": reflect.ValueOf(wrap_math.Cbrt), - "Ceil": reflect.ValueOf(wrap_math.Ceil), - "Copysign": reflect.ValueOf(wrap_math.Copysign), - "Cos": reflect.ValueOf(wrap_math.Cos), - "Cosh": reflect.ValueOf(wrap_math.Cosh), - "Dim": reflect.ValueOf(wrap_math.Dim), - "E": reflect.ValueOf(wrap_math.E), - "Erf": reflect.ValueOf(wrap_math.Erf), - "Erfc": reflect.ValueOf(wrap_math.Erfc), - "Exp": reflect.ValueOf(wrap_math.Exp), - "Exp2": reflect.ValueOf(wrap_math.Exp2), - "Expm1": reflect.ValueOf(wrap_math.Expm1), - "Float32bits": reflect.ValueOf(wrap_math.Float32bits), - "Float32frombits": reflect.ValueOf(wrap_math.Float32frombits), - "Float64bits": reflect.ValueOf(wrap_math.Float64bits), - "Float64frombits": reflect.ValueOf(wrap_math.Float64frombits), - "Floor": reflect.ValueOf(wrap_math.Floor), - "Frexp": reflect.ValueOf(wrap_math.Frexp), - "Gamma": reflect.ValueOf(wrap_math.Gamma), - "Hypot": reflect.ValueOf(wrap_math.Hypot), - "Ilogb": reflect.ValueOf(wrap_math.Ilogb), - "Inf": reflect.ValueOf(wrap_math.Inf), - "IsInf": reflect.ValueOf(wrap_math.IsInf), - "IsNaN": reflect.ValueOf(wrap_math.IsNaN), - "J0": reflect.ValueOf(wrap_math.J0), - "J1": reflect.ValueOf(wrap_math.J1), - "Jn": reflect.ValueOf(wrap_math.Jn), - "Ldexp": reflect.ValueOf(wrap_math.Ldexp), - "Lgamma": reflect.ValueOf(wrap_math.Lgamma), - "Ln10": reflect.ValueOf(wrap_math.Ln10), - "Ln2": reflect.ValueOf(wrap_math.Ln2), - "Log": reflect.ValueOf(wrap_math.Log), - "Log10": reflect.ValueOf(wrap_math.Log10), - "Log10E": reflect.ValueOf(wrap_math.Log10E), - "Log1p": reflect.ValueOf(wrap_math.Log1p), - "Log2": reflect.ValueOf(wrap_math.Log2), - "Log2E": reflect.ValueOf(wrap_math.Log2E), - "Logb": reflect.ValueOf(wrap_math.Logb), - "Max": reflect.ValueOf(wrap_math.Max), - "MaxFloat32": reflect.ValueOf(wrap_math.MaxFloat32), - "MaxFloat64": reflect.ValueOf(wrap_math.MaxFloat64), - "MaxInt16": reflect.ValueOf(wrap_math.MaxInt16), - "MaxInt32": reflect.ValueOf(wrap_math.MaxInt32), - "MaxInt64": reflect.ValueOf(wrap_math.MaxInt64), - "MaxInt8": reflect.ValueOf(wrap_math.MaxInt8), - "MaxUint16": reflect.ValueOf(wrap_math.MaxUint16), - "MaxUint32": reflect.ValueOf(wrap_math.MaxUint32), - "MaxUint64": reflect.ValueOf(uint64(wrap_math.MaxUint64)), - "MaxUint8": reflect.ValueOf(wrap_math.MaxUint8), - "Min": reflect.ValueOf(wrap_math.Min), - "MinInt16": reflect.ValueOf(wrap_math.MinInt16), - "MinInt32": reflect.ValueOf(wrap_math.MinInt32), - "MinInt64": reflect.ValueOf(wrap_math.MinInt64), - "MinInt8": reflect.ValueOf(wrap_math.MinInt8), - "Mod": reflect.ValueOf(wrap_math.Mod), - "Modf": reflect.ValueOf(wrap_math.Modf), - "NaN": reflect.ValueOf(wrap_math.NaN), - "Nextafter": reflect.ValueOf(wrap_math.Nextafter), - "Nextafter32": reflect.ValueOf(wrap_math.Nextafter32), - "Phi": reflect.ValueOf(wrap_math.Phi), - "Pi": reflect.ValueOf(wrap_math.Pi), - "Pow": reflect.ValueOf(wrap_math.Pow), - "Pow10": reflect.ValueOf(wrap_math.Pow10), - "Remainder": reflect.ValueOf(wrap_math.Remainder), - "Signbit": reflect.ValueOf(wrap_math.Signbit), - "Sin": reflect.ValueOf(wrap_math.Sin), - "Sincos": reflect.ValueOf(wrap_math.Sincos), - "Sinh": reflect.ValueOf(wrap_math.Sinh), + "Abs": reflect.ValueOf(wrap_math.Abs), + "Acos": reflect.ValueOf(wrap_math.Acos), + "Acosh": reflect.ValueOf(wrap_math.Acosh), + "Asin": reflect.ValueOf(wrap_math.Asin), + "Asinh": reflect.ValueOf(wrap_math.Asinh), + "Atan": reflect.ValueOf(wrap_math.Atan), + "Atan2": reflect.ValueOf(wrap_math.Atan2), + "Atanh": reflect.ValueOf(wrap_math.Atanh), + "Cbrt": reflect.ValueOf(wrap_math.Cbrt), + "Ceil": reflect.ValueOf(wrap_math.Ceil), + "Copysign": reflect.ValueOf(wrap_math.Copysign), + "Cos": reflect.ValueOf(wrap_math.Cos), + "Cosh": reflect.ValueOf(wrap_math.Cosh), + "Dim": reflect.ValueOf(wrap_math.Dim), + "E": reflect.ValueOf(wrap_math.E), + "Erf": reflect.ValueOf(wrap_math.Erf), + "Erfc": reflect.ValueOf(wrap_math.Erfc), + "Exp": reflect.ValueOf(wrap_math.Exp), + "Exp2": reflect.ValueOf(wrap_math.Exp2), + "Expm1": reflect.ValueOf(wrap_math.Expm1), + "Float32bits": reflect.ValueOf(wrap_math.Float32bits), + "Float32frombits": reflect.ValueOf(wrap_math.Float32frombits), + "Float64bits": reflect.ValueOf(wrap_math.Float64bits), + "Float64frombits": reflect.ValueOf(wrap_math.Float64frombits), + "Floor": reflect.ValueOf(wrap_math.Floor), + "Frexp": reflect.ValueOf(wrap_math.Frexp), + "Gamma": reflect.ValueOf(wrap_math.Gamma), + "Hypot": reflect.ValueOf(wrap_math.Hypot), + "Ilogb": reflect.ValueOf(wrap_math.Ilogb), + "Inf": reflect.ValueOf(wrap_math.Inf), + "IsInf": reflect.ValueOf(wrap_math.IsInf), + "IsNaN": reflect.ValueOf(wrap_math.IsNaN), + "J0": reflect.ValueOf(wrap_math.J0), + "J1": reflect.ValueOf(wrap_math.J1), + "Jn": reflect.ValueOf(wrap_math.Jn), + "Ldexp": reflect.ValueOf(wrap_math.Ldexp), + "Lgamma": reflect.ValueOf(wrap_math.Lgamma), + "Ln10": reflect.ValueOf(wrap_math.Ln10), + "Ln2": reflect.ValueOf(wrap_math.Ln2), + "Log": reflect.ValueOf(wrap_math.Log), + "Log10": reflect.ValueOf(wrap_math.Log10), + "Log10E": reflect.ValueOf(wrap_math.Log10E), + "Log1p": reflect.ValueOf(wrap_math.Log1p), + "Log2": reflect.ValueOf(wrap_math.Log2), + "Log2E": reflect.ValueOf(wrap_math.Log2E), + "Logb": reflect.ValueOf(wrap_math.Logb), + "Max": reflect.ValueOf(wrap_math.Max), + "MaxFloat32": reflect.ValueOf(wrap_math.MaxFloat32), + "MaxFloat64": reflect.ValueOf(wrap_math.MaxFloat64), + "MaxInt16": reflect.ValueOf(wrap_math.MaxInt16), + "MaxInt32": reflect.ValueOf(wrap_math.MaxInt32), + "MaxInt64": reflect.ValueOf(wrap_math.MaxInt64), + "MaxInt8": reflect.ValueOf(wrap_math.MaxInt8), + "MaxUint16": reflect.ValueOf(wrap_math.MaxUint16), + "MaxUint32": reflect.ValueOf(wrap_math.MaxUint32), + "MaxUint64": reflect.ValueOf(uint64(wrap_math.MaxUint64)), + "MaxUint8": reflect.ValueOf(wrap_math.MaxUint8), + "Min": reflect.ValueOf(wrap_math.Min), + "MinInt16": reflect.ValueOf(wrap_math.MinInt16), + "MinInt32": reflect.ValueOf(wrap_math.MinInt32), + "MinInt64": reflect.ValueOf(wrap_math.MinInt64), + "MinInt8": reflect.ValueOf(wrap_math.MinInt8), + "Mod": reflect.ValueOf(wrap_math.Mod), + "Modf": reflect.ValueOf(wrap_math.Modf), + "NaN": reflect.ValueOf(wrap_math.NaN), + "Nextafter": reflect.ValueOf(wrap_math.Nextafter), + "Nextafter32": reflect.ValueOf(wrap_math.Nextafter32), + "Phi": reflect.ValueOf(wrap_math.Phi), + "Pi": reflect.ValueOf(wrap_math.Pi), + "Pow": reflect.ValueOf(wrap_math.Pow), + "Pow10": reflect.ValueOf(wrap_math.Pow10), + "Remainder": reflect.ValueOf(wrap_math.Remainder), + "Signbit": reflect.ValueOf(wrap_math.Signbit), + "Sin": reflect.ValueOf(wrap_math.Sin), + "Sincos": reflect.ValueOf(wrap_math.Sincos), + "Sinh": reflect.ValueOf(wrap_math.Sinh), "SmallestNonzeroFloat32": reflect.ValueOf(wrap_math.SmallestNonzeroFloat32), "SmallestNonzeroFloat64": reflect.ValueOf(wrap_math.SmallestNonzeroFloat64), - "Sqrt": reflect.ValueOf(wrap_math.Sqrt), - "Sqrt2": reflect.ValueOf(wrap_math.Sqrt2), - "SqrtE": reflect.ValueOf(wrap_math.SqrtE), - "SqrtPhi": reflect.ValueOf(wrap_math.SqrtPhi), - "SqrtPi": reflect.ValueOf(wrap_math.SqrtPi), - "Tan": reflect.ValueOf(wrap_math.Tan), - "Tanh": reflect.ValueOf(wrap_math.Tanh), - "Trunc": reflect.ValueOf(wrap_math.Trunc), - "Y0": reflect.ValueOf(wrap_math.Y0), - "Y1": reflect.ValueOf(wrap_math.Y1), - "Yn": reflect.ValueOf(wrap_math.Yn), + "Sqrt": reflect.ValueOf(wrap_math.Sqrt), + "Sqrt2": reflect.ValueOf(wrap_math.Sqrt2), + "SqrtE": reflect.ValueOf(wrap_math.SqrtE), + "SqrtPhi": reflect.ValueOf(wrap_math.SqrtPhi), + "SqrtPi": reflect.ValueOf(wrap_math.SqrtPi), + "Tan": reflect.ValueOf(wrap_math.Tan), + "Tanh": reflect.ValueOf(wrap_math.Tanh), + "Trunc": reflect.ValueOf(wrap_math.Trunc), + "Y0": reflect.ValueOf(wrap_math.Y0), + "Y1": reflect.ValueOf(wrap_math.Y1), + "Yn": reflect.ValueOf(wrap_math.Yn), }, } diff --git a/eval/gowrap/wrapbuiltin/wrap_unicode.go b/eval/gowrap/wrapbuiltin/wrap_unicode.go index a20a25c..bd6cae8 100644 --- a/eval/gowrap/wrapbuiltin/wrap_unicode.go +++ b/eval/gowrap/wrapbuiltin/wrap_unicode.go @@ -13,158 +13,158 @@ import ( var pkg_wrap_unicode = &gowrap.Pkg{ Exports: map[string]reflect.Value{ - "ASCII_Hex_Digit": reflect.ValueOf(&wrap_unicode.ASCII_Hex_Digit).Elem(), - "Adlam": reflect.ValueOf(&wrap_unicode.Adlam).Elem(), - "Ahom": reflect.ValueOf(&wrap_unicode.Ahom).Elem(), - "Anatolian_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Anatolian_Hieroglyphs).Elem(), - "Arabic": reflect.ValueOf(&wrap_unicode.Arabic).Elem(), - "Armenian": reflect.ValueOf(&wrap_unicode.Armenian).Elem(), - "Avestan": reflect.ValueOf(&wrap_unicode.Avestan).Elem(), - "AzeriCase": reflect.ValueOf(&wrap_unicode.AzeriCase).Elem(), - "Balinese": reflect.ValueOf(&wrap_unicode.Balinese).Elem(), - "Bamum": reflect.ValueOf(&wrap_unicode.Bamum).Elem(), - "Bassa_Vah": reflect.ValueOf(&wrap_unicode.Bassa_Vah).Elem(), - "Batak": reflect.ValueOf(&wrap_unicode.Batak).Elem(), - "Bengali": reflect.ValueOf(&wrap_unicode.Bengali).Elem(), - "Bhaiksuki": reflect.ValueOf(&wrap_unicode.Bhaiksuki).Elem(), - "Bidi_Control": reflect.ValueOf(&wrap_unicode.Bidi_Control).Elem(), - "Bopomofo": reflect.ValueOf(&wrap_unicode.Bopomofo).Elem(), - "Brahmi": reflect.ValueOf(&wrap_unicode.Brahmi).Elem(), - "Braille": reflect.ValueOf(&wrap_unicode.Braille).Elem(), - "Buginese": reflect.ValueOf(&wrap_unicode.Buginese).Elem(), - "Buhid": reflect.ValueOf(&wrap_unicode.Buhid).Elem(), - "C": reflect.ValueOf(&wrap_unicode.C).Elem(), - "Canadian_Aboriginal": reflect.ValueOf(&wrap_unicode.Canadian_Aboriginal).Elem(), - "Carian": reflect.ValueOf(&wrap_unicode.Carian).Elem(), - "CaseRange": reflect.ValueOf(reflect.TypeOf(wrap_unicode.CaseRange{})), - "CaseRanges": reflect.ValueOf(&wrap_unicode.CaseRanges).Elem(), - "Categories": reflect.ValueOf(&wrap_unicode.Categories).Elem(), - "Caucasian_Albanian": reflect.ValueOf(&wrap_unicode.Caucasian_Albanian).Elem(), - "Cc": reflect.ValueOf(&wrap_unicode.Cc).Elem(), - "Cf": reflect.ValueOf(&wrap_unicode.Cf).Elem(), - "Chakma": reflect.ValueOf(&wrap_unicode.Chakma).Elem(), - "Cham": reflect.ValueOf(&wrap_unicode.Cham).Elem(), - "Cherokee": reflect.ValueOf(&wrap_unicode.Cherokee).Elem(), - "Co": reflect.ValueOf(&wrap_unicode.Co).Elem(), - "Common": reflect.ValueOf(&wrap_unicode.Common).Elem(), - "Coptic": reflect.ValueOf(&wrap_unicode.Coptic).Elem(), - "Cs": reflect.ValueOf(&wrap_unicode.Cs).Elem(), - "Cuneiform": reflect.ValueOf(&wrap_unicode.Cuneiform).Elem(), - "Cypriot": reflect.ValueOf(&wrap_unicode.Cypriot).Elem(), - "Cyrillic": reflect.ValueOf(&wrap_unicode.Cyrillic).Elem(), - "Dash": reflect.ValueOf(&wrap_unicode.Dash).Elem(), - "Deprecated": reflect.ValueOf(&wrap_unicode.Deprecated).Elem(), - "Deseret": reflect.ValueOf(&wrap_unicode.Deseret).Elem(), - "Devanagari": reflect.ValueOf(&wrap_unicode.Devanagari).Elem(), - "Diacritic": reflect.ValueOf(&wrap_unicode.Diacritic).Elem(), - "Digit": reflect.ValueOf(&wrap_unicode.Digit).Elem(), - "Duployan": reflect.ValueOf(&wrap_unicode.Duployan).Elem(), - "Egyptian_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Egyptian_Hieroglyphs).Elem(), - "Elbasan": reflect.ValueOf(&wrap_unicode.Elbasan).Elem(), - "Ethiopic": reflect.ValueOf(&wrap_unicode.Ethiopic).Elem(), - "Extender": reflect.ValueOf(&wrap_unicode.Extender).Elem(), - "FoldCategory": reflect.ValueOf(&wrap_unicode.FoldCategory).Elem(), - "FoldScript": reflect.ValueOf(&wrap_unicode.FoldScript).Elem(), - "Georgian": reflect.ValueOf(&wrap_unicode.Georgian).Elem(), - "Glagolitic": reflect.ValueOf(&wrap_unicode.Glagolitic).Elem(), - "Gothic": reflect.ValueOf(&wrap_unicode.Gothic).Elem(), - "Grantha": reflect.ValueOf(&wrap_unicode.Grantha).Elem(), - "GraphicRanges": reflect.ValueOf(&wrap_unicode.GraphicRanges).Elem(), - "Greek": reflect.ValueOf(&wrap_unicode.Greek).Elem(), - "Gujarati": reflect.ValueOf(&wrap_unicode.Gujarati).Elem(), - "Gurmukhi": reflect.ValueOf(&wrap_unicode.Gurmukhi).Elem(), - "Han": reflect.ValueOf(&wrap_unicode.Han).Elem(), - "Hangul": reflect.ValueOf(&wrap_unicode.Hangul).Elem(), - "Hanunoo": reflect.ValueOf(&wrap_unicode.Hanunoo).Elem(), - "Hatran": reflect.ValueOf(&wrap_unicode.Hatran).Elem(), - "Hebrew": reflect.ValueOf(&wrap_unicode.Hebrew).Elem(), - "Hex_Digit": reflect.ValueOf(&wrap_unicode.Hex_Digit).Elem(), - "Hiragana": reflect.ValueOf(&wrap_unicode.Hiragana).Elem(), - "Hyphen": reflect.ValueOf(&wrap_unicode.Hyphen).Elem(), - "IDS_Binary_Operator": reflect.ValueOf(&wrap_unicode.IDS_Binary_Operator).Elem(), - "IDS_Trinary_Operator": reflect.ValueOf(&wrap_unicode.IDS_Trinary_Operator).Elem(), - "Ideographic": reflect.ValueOf(&wrap_unicode.Ideographic).Elem(), - "Imperial_Aramaic": reflect.ValueOf(&wrap_unicode.Imperial_Aramaic).Elem(), - "In": reflect.ValueOf(wrap_unicode.In), - "Inherited": reflect.ValueOf(&wrap_unicode.Inherited).Elem(), - "Inscriptional_Pahlavi": reflect.ValueOf(&wrap_unicode.Inscriptional_Pahlavi).Elem(), - "Inscriptional_Parthian": reflect.ValueOf(&wrap_unicode.Inscriptional_Parthian).Elem(), - "Is": reflect.ValueOf(wrap_unicode.Is), - "IsControl": reflect.ValueOf(wrap_unicode.IsControl), - "IsDigit": reflect.ValueOf(wrap_unicode.IsDigit), - "IsGraphic": reflect.ValueOf(wrap_unicode.IsGraphic), - "IsLetter": reflect.ValueOf(wrap_unicode.IsLetter), - "IsLower": reflect.ValueOf(wrap_unicode.IsLower), - "IsMark": reflect.ValueOf(wrap_unicode.IsMark), - "IsNumber": reflect.ValueOf(wrap_unicode.IsNumber), - "IsOneOf": reflect.ValueOf(wrap_unicode.IsOneOf), - "IsPrint": reflect.ValueOf(wrap_unicode.IsPrint), - "IsPunct": reflect.ValueOf(wrap_unicode.IsPunct), - "IsSpace": reflect.ValueOf(wrap_unicode.IsSpace), - "IsSymbol": reflect.ValueOf(wrap_unicode.IsSymbol), - "IsTitle": reflect.ValueOf(wrap_unicode.IsTitle), - "IsUpper": reflect.ValueOf(wrap_unicode.IsUpper), - "Javanese": reflect.ValueOf(&wrap_unicode.Javanese).Elem(), - "Join_Control": reflect.ValueOf(&wrap_unicode.Join_Control).Elem(), - "Kaithi": reflect.ValueOf(&wrap_unicode.Kaithi).Elem(), - "Kannada": reflect.ValueOf(&wrap_unicode.Kannada).Elem(), - "Katakana": reflect.ValueOf(&wrap_unicode.Katakana).Elem(), - "Kayah_Li": reflect.ValueOf(&wrap_unicode.Kayah_Li).Elem(), - "Kharoshthi": reflect.ValueOf(&wrap_unicode.Kharoshthi).Elem(), - "Khmer": reflect.ValueOf(&wrap_unicode.Khmer).Elem(), - "Khojki": reflect.ValueOf(&wrap_unicode.Khojki).Elem(), - "Khudawadi": reflect.ValueOf(&wrap_unicode.Khudawadi).Elem(), - "L": reflect.ValueOf(&wrap_unicode.L).Elem(), - "Lao": reflect.ValueOf(&wrap_unicode.Lao).Elem(), - "Latin": reflect.ValueOf(&wrap_unicode.Latin).Elem(), - "Lepcha": reflect.ValueOf(&wrap_unicode.Lepcha).Elem(), - "Letter": reflect.ValueOf(&wrap_unicode.Letter).Elem(), - "Limbu": reflect.ValueOf(&wrap_unicode.Limbu).Elem(), - "Linear_A": reflect.ValueOf(&wrap_unicode.Linear_A).Elem(), - "Linear_B": reflect.ValueOf(&wrap_unicode.Linear_B).Elem(), - "Lisu": reflect.ValueOf(&wrap_unicode.Lisu).Elem(), - "Ll": reflect.ValueOf(&wrap_unicode.Ll).Elem(), - "Lm": reflect.ValueOf(&wrap_unicode.Lm).Elem(), - "Lo": reflect.ValueOf(&wrap_unicode.Lo).Elem(), - "Logical_Order_Exception": reflect.ValueOf(&wrap_unicode.Logical_Order_Exception).Elem(), - "Lower": reflect.ValueOf(&wrap_unicode.Lower).Elem(), - "LowerCase": reflect.ValueOf(wrap_unicode.LowerCase), - "Lt": reflect.ValueOf(&wrap_unicode.Lt).Elem(), - "Lu": reflect.ValueOf(&wrap_unicode.Lu).Elem(), - "Lycian": reflect.ValueOf(&wrap_unicode.Lycian).Elem(), - "Lydian": reflect.ValueOf(&wrap_unicode.Lydian).Elem(), - "M": reflect.ValueOf(&wrap_unicode.M).Elem(), - "Mahajani": reflect.ValueOf(&wrap_unicode.Mahajani).Elem(), - "Malayalam": reflect.ValueOf(&wrap_unicode.Malayalam).Elem(), - "Mandaic": reflect.ValueOf(&wrap_unicode.Mandaic).Elem(), - "Manichaean": reflect.ValueOf(&wrap_unicode.Manichaean).Elem(), - "Marchen": reflect.ValueOf(&wrap_unicode.Marchen).Elem(), - "Mark": reflect.ValueOf(&wrap_unicode.Mark).Elem(), - "MaxASCII": reflect.ValueOf(wrap_unicode.MaxASCII), - "MaxCase": reflect.ValueOf(wrap_unicode.MaxCase), - "MaxLatin1": reflect.ValueOf(wrap_unicode.MaxLatin1), - "MaxRune": reflect.ValueOf(wrap_unicode.MaxRune), - "Mc": reflect.ValueOf(&wrap_unicode.Mc).Elem(), - "Me": reflect.ValueOf(&wrap_unicode.Me).Elem(), - "Meetei_Mayek": reflect.ValueOf(&wrap_unicode.Meetei_Mayek).Elem(), - "Mende_Kikakui": reflect.ValueOf(&wrap_unicode.Mende_Kikakui).Elem(), - "Meroitic_Cursive": reflect.ValueOf(&wrap_unicode.Meroitic_Cursive).Elem(), - "Meroitic_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Meroitic_Hieroglyphs).Elem(), - "Miao": reflect.ValueOf(&wrap_unicode.Miao).Elem(), - "Mn": reflect.ValueOf(&wrap_unicode.Mn).Elem(), - "Modi": reflect.ValueOf(&wrap_unicode.Modi).Elem(), - "Mongolian": reflect.ValueOf(&wrap_unicode.Mongolian).Elem(), - "Mro": reflect.ValueOf(&wrap_unicode.Mro).Elem(), - "Multani": reflect.ValueOf(&wrap_unicode.Multani).Elem(), - "Myanmar": reflect.ValueOf(&wrap_unicode.Myanmar).Elem(), - "N": reflect.ValueOf(&wrap_unicode.N).Elem(), - "Nabataean": reflect.ValueOf(&wrap_unicode.Nabataean).Elem(), - "Nd": reflect.ValueOf(&wrap_unicode.Nd).Elem(), - "New_Tai_Lue": reflect.ValueOf(&wrap_unicode.New_Tai_Lue).Elem(), - "Newa": reflect.ValueOf(&wrap_unicode.Newa).Elem(), - "Nko": reflect.ValueOf(&wrap_unicode.Nko).Elem(), - "Nl": reflect.ValueOf(&wrap_unicode.Nl).Elem(), - "No": reflect.ValueOf(&wrap_unicode.No).Elem(), + "ASCII_Hex_Digit": reflect.ValueOf(&wrap_unicode.ASCII_Hex_Digit).Elem(), + "Adlam": reflect.ValueOf(&wrap_unicode.Adlam).Elem(), + "Ahom": reflect.ValueOf(&wrap_unicode.Ahom).Elem(), + "Anatolian_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Anatolian_Hieroglyphs).Elem(), + "Arabic": reflect.ValueOf(&wrap_unicode.Arabic).Elem(), + "Armenian": reflect.ValueOf(&wrap_unicode.Armenian).Elem(), + "Avestan": reflect.ValueOf(&wrap_unicode.Avestan).Elem(), + "AzeriCase": reflect.ValueOf(&wrap_unicode.AzeriCase).Elem(), + "Balinese": reflect.ValueOf(&wrap_unicode.Balinese).Elem(), + "Bamum": reflect.ValueOf(&wrap_unicode.Bamum).Elem(), + "Bassa_Vah": reflect.ValueOf(&wrap_unicode.Bassa_Vah).Elem(), + "Batak": reflect.ValueOf(&wrap_unicode.Batak).Elem(), + "Bengali": reflect.ValueOf(&wrap_unicode.Bengali).Elem(), + "Bhaiksuki": reflect.ValueOf(&wrap_unicode.Bhaiksuki).Elem(), + "Bidi_Control": reflect.ValueOf(&wrap_unicode.Bidi_Control).Elem(), + "Bopomofo": reflect.ValueOf(&wrap_unicode.Bopomofo).Elem(), + "Brahmi": reflect.ValueOf(&wrap_unicode.Brahmi).Elem(), + "Braille": reflect.ValueOf(&wrap_unicode.Braille).Elem(), + "Buginese": reflect.ValueOf(&wrap_unicode.Buginese).Elem(), + "Buhid": reflect.ValueOf(&wrap_unicode.Buhid).Elem(), + "C": reflect.ValueOf(&wrap_unicode.C).Elem(), + "Canadian_Aboriginal": reflect.ValueOf(&wrap_unicode.Canadian_Aboriginal).Elem(), + "Carian": reflect.ValueOf(&wrap_unicode.Carian).Elem(), + "CaseRange": reflect.ValueOf(reflect.TypeOf(wrap_unicode.CaseRange{})), + "CaseRanges": reflect.ValueOf(&wrap_unicode.CaseRanges).Elem(), + "Categories": reflect.ValueOf(&wrap_unicode.Categories).Elem(), + "Caucasian_Albanian": reflect.ValueOf(&wrap_unicode.Caucasian_Albanian).Elem(), + "Cc": reflect.ValueOf(&wrap_unicode.Cc).Elem(), + "Cf": reflect.ValueOf(&wrap_unicode.Cf).Elem(), + "Chakma": reflect.ValueOf(&wrap_unicode.Chakma).Elem(), + "Cham": reflect.ValueOf(&wrap_unicode.Cham).Elem(), + "Cherokee": reflect.ValueOf(&wrap_unicode.Cherokee).Elem(), + "Co": reflect.ValueOf(&wrap_unicode.Co).Elem(), + "Common": reflect.ValueOf(&wrap_unicode.Common).Elem(), + "Coptic": reflect.ValueOf(&wrap_unicode.Coptic).Elem(), + "Cs": reflect.ValueOf(&wrap_unicode.Cs).Elem(), + "Cuneiform": reflect.ValueOf(&wrap_unicode.Cuneiform).Elem(), + "Cypriot": reflect.ValueOf(&wrap_unicode.Cypriot).Elem(), + "Cyrillic": reflect.ValueOf(&wrap_unicode.Cyrillic).Elem(), + "Dash": reflect.ValueOf(&wrap_unicode.Dash).Elem(), + "Deprecated": reflect.ValueOf(&wrap_unicode.Deprecated).Elem(), + "Deseret": reflect.ValueOf(&wrap_unicode.Deseret).Elem(), + "Devanagari": reflect.ValueOf(&wrap_unicode.Devanagari).Elem(), + "Diacritic": reflect.ValueOf(&wrap_unicode.Diacritic).Elem(), + "Digit": reflect.ValueOf(&wrap_unicode.Digit).Elem(), + "Duployan": reflect.ValueOf(&wrap_unicode.Duployan).Elem(), + "Egyptian_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Egyptian_Hieroglyphs).Elem(), + "Elbasan": reflect.ValueOf(&wrap_unicode.Elbasan).Elem(), + "Ethiopic": reflect.ValueOf(&wrap_unicode.Ethiopic).Elem(), + "Extender": reflect.ValueOf(&wrap_unicode.Extender).Elem(), + "FoldCategory": reflect.ValueOf(&wrap_unicode.FoldCategory).Elem(), + "FoldScript": reflect.ValueOf(&wrap_unicode.FoldScript).Elem(), + "Georgian": reflect.ValueOf(&wrap_unicode.Georgian).Elem(), + "Glagolitic": reflect.ValueOf(&wrap_unicode.Glagolitic).Elem(), + "Gothic": reflect.ValueOf(&wrap_unicode.Gothic).Elem(), + "Grantha": reflect.ValueOf(&wrap_unicode.Grantha).Elem(), + "GraphicRanges": reflect.ValueOf(&wrap_unicode.GraphicRanges).Elem(), + "Greek": reflect.ValueOf(&wrap_unicode.Greek).Elem(), + "Gujarati": reflect.ValueOf(&wrap_unicode.Gujarati).Elem(), + "Gurmukhi": reflect.ValueOf(&wrap_unicode.Gurmukhi).Elem(), + "Han": reflect.ValueOf(&wrap_unicode.Han).Elem(), + "Hangul": reflect.ValueOf(&wrap_unicode.Hangul).Elem(), + "Hanunoo": reflect.ValueOf(&wrap_unicode.Hanunoo).Elem(), + "Hatran": reflect.ValueOf(&wrap_unicode.Hatran).Elem(), + "Hebrew": reflect.ValueOf(&wrap_unicode.Hebrew).Elem(), + "Hex_Digit": reflect.ValueOf(&wrap_unicode.Hex_Digit).Elem(), + "Hiragana": reflect.ValueOf(&wrap_unicode.Hiragana).Elem(), + "Hyphen": reflect.ValueOf(&wrap_unicode.Hyphen).Elem(), + "IDS_Binary_Operator": reflect.ValueOf(&wrap_unicode.IDS_Binary_Operator).Elem(), + "IDS_Trinary_Operator": reflect.ValueOf(&wrap_unicode.IDS_Trinary_Operator).Elem(), + "Ideographic": reflect.ValueOf(&wrap_unicode.Ideographic).Elem(), + "Imperial_Aramaic": reflect.ValueOf(&wrap_unicode.Imperial_Aramaic).Elem(), + "In": reflect.ValueOf(wrap_unicode.In), + "Inherited": reflect.ValueOf(&wrap_unicode.Inherited).Elem(), + "Inscriptional_Pahlavi": reflect.ValueOf(&wrap_unicode.Inscriptional_Pahlavi).Elem(), + "Inscriptional_Parthian": reflect.ValueOf(&wrap_unicode.Inscriptional_Parthian).Elem(), + "Is": reflect.ValueOf(wrap_unicode.Is), + "IsControl": reflect.ValueOf(wrap_unicode.IsControl), + "IsDigit": reflect.ValueOf(wrap_unicode.IsDigit), + "IsGraphic": reflect.ValueOf(wrap_unicode.IsGraphic), + "IsLetter": reflect.ValueOf(wrap_unicode.IsLetter), + "IsLower": reflect.ValueOf(wrap_unicode.IsLower), + "IsMark": reflect.ValueOf(wrap_unicode.IsMark), + "IsNumber": reflect.ValueOf(wrap_unicode.IsNumber), + "IsOneOf": reflect.ValueOf(wrap_unicode.IsOneOf), + "IsPrint": reflect.ValueOf(wrap_unicode.IsPrint), + "IsPunct": reflect.ValueOf(wrap_unicode.IsPunct), + "IsSpace": reflect.ValueOf(wrap_unicode.IsSpace), + "IsSymbol": reflect.ValueOf(wrap_unicode.IsSymbol), + "IsTitle": reflect.ValueOf(wrap_unicode.IsTitle), + "IsUpper": reflect.ValueOf(wrap_unicode.IsUpper), + "Javanese": reflect.ValueOf(&wrap_unicode.Javanese).Elem(), + "Join_Control": reflect.ValueOf(&wrap_unicode.Join_Control).Elem(), + "Kaithi": reflect.ValueOf(&wrap_unicode.Kaithi).Elem(), + "Kannada": reflect.ValueOf(&wrap_unicode.Kannada).Elem(), + "Katakana": reflect.ValueOf(&wrap_unicode.Katakana).Elem(), + "Kayah_Li": reflect.ValueOf(&wrap_unicode.Kayah_Li).Elem(), + "Kharoshthi": reflect.ValueOf(&wrap_unicode.Kharoshthi).Elem(), + "Khmer": reflect.ValueOf(&wrap_unicode.Khmer).Elem(), + "Khojki": reflect.ValueOf(&wrap_unicode.Khojki).Elem(), + "Khudawadi": reflect.ValueOf(&wrap_unicode.Khudawadi).Elem(), + "L": reflect.ValueOf(&wrap_unicode.L).Elem(), + "Lao": reflect.ValueOf(&wrap_unicode.Lao).Elem(), + "Latin": reflect.ValueOf(&wrap_unicode.Latin).Elem(), + "Lepcha": reflect.ValueOf(&wrap_unicode.Lepcha).Elem(), + "Letter": reflect.ValueOf(&wrap_unicode.Letter).Elem(), + "Limbu": reflect.ValueOf(&wrap_unicode.Limbu).Elem(), + "Linear_A": reflect.ValueOf(&wrap_unicode.Linear_A).Elem(), + "Linear_B": reflect.ValueOf(&wrap_unicode.Linear_B).Elem(), + "Lisu": reflect.ValueOf(&wrap_unicode.Lisu).Elem(), + "Ll": reflect.ValueOf(&wrap_unicode.Ll).Elem(), + "Lm": reflect.ValueOf(&wrap_unicode.Lm).Elem(), + "Lo": reflect.ValueOf(&wrap_unicode.Lo).Elem(), + "Logical_Order_Exception": reflect.ValueOf(&wrap_unicode.Logical_Order_Exception).Elem(), + "Lower": reflect.ValueOf(&wrap_unicode.Lower).Elem(), + "LowerCase": reflect.ValueOf(wrap_unicode.LowerCase), + "Lt": reflect.ValueOf(&wrap_unicode.Lt).Elem(), + "Lu": reflect.ValueOf(&wrap_unicode.Lu).Elem(), + "Lycian": reflect.ValueOf(&wrap_unicode.Lycian).Elem(), + "Lydian": reflect.ValueOf(&wrap_unicode.Lydian).Elem(), + "M": reflect.ValueOf(&wrap_unicode.M).Elem(), + "Mahajani": reflect.ValueOf(&wrap_unicode.Mahajani).Elem(), + "Malayalam": reflect.ValueOf(&wrap_unicode.Malayalam).Elem(), + "Mandaic": reflect.ValueOf(&wrap_unicode.Mandaic).Elem(), + "Manichaean": reflect.ValueOf(&wrap_unicode.Manichaean).Elem(), + "Marchen": reflect.ValueOf(&wrap_unicode.Marchen).Elem(), + "Mark": reflect.ValueOf(&wrap_unicode.Mark).Elem(), + "MaxASCII": reflect.ValueOf(wrap_unicode.MaxASCII), + "MaxCase": reflect.ValueOf(wrap_unicode.MaxCase), + "MaxLatin1": reflect.ValueOf(wrap_unicode.MaxLatin1), + "MaxRune": reflect.ValueOf(wrap_unicode.MaxRune), + "Mc": reflect.ValueOf(&wrap_unicode.Mc).Elem(), + "Me": reflect.ValueOf(&wrap_unicode.Me).Elem(), + "Meetei_Mayek": reflect.ValueOf(&wrap_unicode.Meetei_Mayek).Elem(), + "Mende_Kikakui": reflect.ValueOf(&wrap_unicode.Mende_Kikakui).Elem(), + "Meroitic_Cursive": reflect.ValueOf(&wrap_unicode.Meroitic_Cursive).Elem(), + "Meroitic_Hieroglyphs": reflect.ValueOf(&wrap_unicode.Meroitic_Hieroglyphs).Elem(), + "Miao": reflect.ValueOf(&wrap_unicode.Miao).Elem(), + "Mn": reflect.ValueOf(&wrap_unicode.Mn).Elem(), + "Modi": reflect.ValueOf(&wrap_unicode.Modi).Elem(), + "Mongolian": reflect.ValueOf(&wrap_unicode.Mongolian).Elem(), + "Mro": reflect.ValueOf(&wrap_unicode.Mro).Elem(), + "Multani": reflect.ValueOf(&wrap_unicode.Multani).Elem(), + "Myanmar": reflect.ValueOf(&wrap_unicode.Myanmar).Elem(), + "N": reflect.ValueOf(&wrap_unicode.N).Elem(), + "Nabataean": reflect.ValueOf(&wrap_unicode.Nabataean).Elem(), + "Nd": reflect.ValueOf(&wrap_unicode.Nd).Elem(), + "New_Tai_Lue": reflect.ValueOf(&wrap_unicode.New_Tai_Lue).Elem(), + "Newa": reflect.ValueOf(&wrap_unicode.Newa).Elem(), + "Nko": reflect.ValueOf(&wrap_unicode.Nko).Elem(), + "Nl": reflect.ValueOf(&wrap_unicode.Nl).Elem(), + "No": reflect.ValueOf(&wrap_unicode.No).Elem(), "Noncharacter_Code_Point": reflect.ValueOf(&wrap_unicode.Noncharacter_Code_Point).Elem(), "Number": reflect.ValueOf(&wrap_unicode.Number).Elem(), "Ogham": reflect.ValueOf(&wrap_unicode.Ogham).Elem(), @@ -202,81 +202,81 @@ var pkg_wrap_unicode = &gowrap.Pkg{ "Phoenician": reflect.ValueOf(&wrap_unicode.Phoenician).Elem(), "Pi": reflect.ValueOf(&wrap_unicode.Pi).Elem(), "Po": reflect.ValueOf(&wrap_unicode.Po).Elem(), - "Prepended_Concatenation_Mark": reflect.ValueOf(&wrap_unicode.Prepended_Concatenation_Mark).Elem(), - "PrintRanges": reflect.ValueOf(&wrap_unicode.PrintRanges).Elem(), - "Properties": reflect.ValueOf(&wrap_unicode.Properties).Elem(), - "Ps": reflect.ValueOf(&wrap_unicode.Ps).Elem(), - "Psalter_Pahlavi": reflect.ValueOf(&wrap_unicode.Psalter_Pahlavi).Elem(), - "Punct": reflect.ValueOf(&wrap_unicode.Punct).Elem(), - "Quotation_Mark": reflect.ValueOf(&wrap_unicode.Quotation_Mark).Elem(), - "Radical": reflect.ValueOf(&wrap_unicode.Radical).Elem(), - "Range16": reflect.ValueOf(reflect.TypeOf(wrap_unicode.Range16{})), - "Range32": reflect.ValueOf(reflect.TypeOf(wrap_unicode.Range32{})), - "RangeTable": reflect.ValueOf(reflect.TypeOf(wrap_unicode.RangeTable{})), - "Rejang": reflect.ValueOf(&wrap_unicode.Rejang).Elem(), - "ReplacementChar": reflect.ValueOf(wrap_unicode.ReplacementChar), - "Runic": reflect.ValueOf(&wrap_unicode.Runic).Elem(), - "S": reflect.ValueOf(&wrap_unicode.S).Elem(), - "STerm": reflect.ValueOf(&wrap_unicode.STerm).Elem(), - "Samaritan": reflect.ValueOf(&wrap_unicode.Samaritan).Elem(), - "Saurashtra": reflect.ValueOf(&wrap_unicode.Saurashtra).Elem(), - "Sc": reflect.ValueOf(&wrap_unicode.Sc).Elem(), - "Scripts": reflect.ValueOf(&wrap_unicode.Scripts).Elem(), - "Sentence_Terminal": reflect.ValueOf(&wrap_unicode.Sentence_Terminal).Elem(), - "Sharada": reflect.ValueOf(&wrap_unicode.Sharada).Elem(), - "Shavian": reflect.ValueOf(&wrap_unicode.Shavian).Elem(), - "Siddham": reflect.ValueOf(&wrap_unicode.Siddham).Elem(), - "SignWriting": reflect.ValueOf(&wrap_unicode.SignWriting).Elem(), - "SimpleFold": reflect.ValueOf(wrap_unicode.SimpleFold), - "Sinhala": reflect.ValueOf(&wrap_unicode.Sinhala).Elem(), - "Sk": reflect.ValueOf(&wrap_unicode.Sk).Elem(), - "Sm": reflect.ValueOf(&wrap_unicode.Sm).Elem(), - "So": reflect.ValueOf(&wrap_unicode.So).Elem(), - "Soft_Dotted": reflect.ValueOf(&wrap_unicode.Soft_Dotted).Elem(), - "Sora_Sompeng": reflect.ValueOf(&wrap_unicode.Sora_Sompeng).Elem(), - "Space": reflect.ValueOf(&wrap_unicode.Space).Elem(), - "SpecialCase": reflect.ValueOf(reflect.TypeOf(wrap_unicode.SpecialCase(nil))), - "Sundanese": reflect.ValueOf(&wrap_unicode.Sundanese).Elem(), - "Syloti_Nagri": reflect.ValueOf(&wrap_unicode.Syloti_Nagri).Elem(), - "Symbol": reflect.ValueOf(&wrap_unicode.Symbol).Elem(), - "Syriac": reflect.ValueOf(&wrap_unicode.Syriac).Elem(), - "Tagalog": reflect.ValueOf(&wrap_unicode.Tagalog).Elem(), - "Tagbanwa": reflect.ValueOf(&wrap_unicode.Tagbanwa).Elem(), - "Tai_Le": reflect.ValueOf(&wrap_unicode.Tai_Le).Elem(), - "Tai_Tham": reflect.ValueOf(&wrap_unicode.Tai_Tham).Elem(), - "Tai_Viet": reflect.ValueOf(&wrap_unicode.Tai_Viet).Elem(), - "Takri": reflect.ValueOf(&wrap_unicode.Takri).Elem(), - "Tamil": reflect.ValueOf(&wrap_unicode.Tamil).Elem(), - "Tangut": reflect.ValueOf(&wrap_unicode.Tangut).Elem(), - "Telugu": reflect.ValueOf(&wrap_unicode.Telugu).Elem(), - "Terminal_Punctuation": reflect.ValueOf(&wrap_unicode.Terminal_Punctuation).Elem(), - "Thaana": reflect.ValueOf(&wrap_unicode.Thaana).Elem(), - "Thai": reflect.ValueOf(&wrap_unicode.Thai).Elem(), - "Tibetan": reflect.ValueOf(&wrap_unicode.Tibetan).Elem(), - "Tifinagh": reflect.ValueOf(&wrap_unicode.Tifinagh).Elem(), - "Tirhuta": reflect.ValueOf(&wrap_unicode.Tirhuta).Elem(), - "Title": reflect.ValueOf(&wrap_unicode.Title).Elem(), - "TitleCase": reflect.ValueOf(wrap_unicode.TitleCase), - "To": reflect.ValueOf(wrap_unicode.To), - "ToLower": reflect.ValueOf(wrap_unicode.ToLower), - "ToTitle": reflect.ValueOf(wrap_unicode.ToTitle), - "ToUpper": reflect.ValueOf(wrap_unicode.ToUpper), - "TurkishCase": reflect.ValueOf(&wrap_unicode.TurkishCase).Elem(), - "Ugaritic": reflect.ValueOf(&wrap_unicode.Ugaritic).Elem(), - "Unified_Ideograph": reflect.ValueOf(&wrap_unicode.Unified_Ideograph).Elem(), - "Upper": reflect.ValueOf(&wrap_unicode.Upper).Elem(), - "UpperCase": reflect.ValueOf(wrap_unicode.UpperCase), - "UpperLower": reflect.ValueOf(wrap_unicode.UpperLower), - "Vai": reflect.ValueOf(&wrap_unicode.Vai).Elem(), - "Variation_Selector": reflect.ValueOf(&wrap_unicode.Variation_Selector).Elem(), - "Version": reflect.ValueOf(wrap_unicode.Version), - "Warang_Citi": reflect.ValueOf(&wrap_unicode.Warang_Citi).Elem(), - "White_Space": reflect.ValueOf(&wrap_unicode.White_Space).Elem(), - "Yi": reflect.ValueOf(&wrap_unicode.Yi).Elem(), - "Z": reflect.ValueOf(&wrap_unicode.Z).Elem(), - "Zl": reflect.ValueOf(&wrap_unicode.Zl).Elem(), - "Zp": reflect.ValueOf(&wrap_unicode.Zp).Elem(), - "Zs": reflect.ValueOf(&wrap_unicode.Zs).Elem(), + "Prepended_Concatenation_Mark": reflect.ValueOf(&wrap_unicode.Prepended_Concatenation_Mark).Elem(), + "PrintRanges": reflect.ValueOf(&wrap_unicode.PrintRanges).Elem(), + "Properties": reflect.ValueOf(&wrap_unicode.Properties).Elem(), + "Ps": reflect.ValueOf(&wrap_unicode.Ps).Elem(), + "Psalter_Pahlavi": reflect.ValueOf(&wrap_unicode.Psalter_Pahlavi).Elem(), + "Punct": reflect.ValueOf(&wrap_unicode.Punct).Elem(), + "Quotation_Mark": reflect.ValueOf(&wrap_unicode.Quotation_Mark).Elem(), + "Radical": reflect.ValueOf(&wrap_unicode.Radical).Elem(), + "Range16": reflect.ValueOf(reflect.TypeOf(wrap_unicode.Range16{})), + "Range32": reflect.ValueOf(reflect.TypeOf(wrap_unicode.Range32{})), + "RangeTable": reflect.ValueOf(reflect.TypeOf(wrap_unicode.RangeTable{})), + "Rejang": reflect.ValueOf(&wrap_unicode.Rejang).Elem(), + "ReplacementChar": reflect.ValueOf(wrap_unicode.ReplacementChar), + "Runic": reflect.ValueOf(&wrap_unicode.Runic).Elem(), + "S": reflect.ValueOf(&wrap_unicode.S).Elem(), + "STerm": reflect.ValueOf(&wrap_unicode.STerm).Elem(), + "Samaritan": reflect.ValueOf(&wrap_unicode.Samaritan).Elem(), + "Saurashtra": reflect.ValueOf(&wrap_unicode.Saurashtra).Elem(), + "Sc": reflect.ValueOf(&wrap_unicode.Sc).Elem(), + "Scripts": reflect.ValueOf(&wrap_unicode.Scripts).Elem(), + "Sentence_Terminal": reflect.ValueOf(&wrap_unicode.Sentence_Terminal).Elem(), + "Sharada": reflect.ValueOf(&wrap_unicode.Sharada).Elem(), + "Shavian": reflect.ValueOf(&wrap_unicode.Shavian).Elem(), + "Siddham": reflect.ValueOf(&wrap_unicode.Siddham).Elem(), + "SignWriting": reflect.ValueOf(&wrap_unicode.SignWriting).Elem(), + "SimpleFold": reflect.ValueOf(wrap_unicode.SimpleFold), + "Sinhala": reflect.ValueOf(&wrap_unicode.Sinhala).Elem(), + "Sk": reflect.ValueOf(&wrap_unicode.Sk).Elem(), + "Sm": reflect.ValueOf(&wrap_unicode.Sm).Elem(), + "So": reflect.ValueOf(&wrap_unicode.So).Elem(), + "Soft_Dotted": reflect.ValueOf(&wrap_unicode.Soft_Dotted).Elem(), + "Sora_Sompeng": reflect.ValueOf(&wrap_unicode.Sora_Sompeng).Elem(), + "Space": reflect.ValueOf(&wrap_unicode.Space).Elem(), + "SpecialCase": reflect.ValueOf(reflect.TypeOf(wrap_unicode.SpecialCase(nil))), + "Sundanese": reflect.ValueOf(&wrap_unicode.Sundanese).Elem(), + "Syloti_Nagri": reflect.ValueOf(&wrap_unicode.Syloti_Nagri).Elem(), + "Symbol": reflect.ValueOf(&wrap_unicode.Symbol).Elem(), + "Syriac": reflect.ValueOf(&wrap_unicode.Syriac).Elem(), + "Tagalog": reflect.ValueOf(&wrap_unicode.Tagalog).Elem(), + "Tagbanwa": reflect.ValueOf(&wrap_unicode.Tagbanwa).Elem(), + "Tai_Le": reflect.ValueOf(&wrap_unicode.Tai_Le).Elem(), + "Tai_Tham": reflect.ValueOf(&wrap_unicode.Tai_Tham).Elem(), + "Tai_Viet": reflect.ValueOf(&wrap_unicode.Tai_Viet).Elem(), + "Takri": reflect.ValueOf(&wrap_unicode.Takri).Elem(), + "Tamil": reflect.ValueOf(&wrap_unicode.Tamil).Elem(), + "Tangut": reflect.ValueOf(&wrap_unicode.Tangut).Elem(), + "Telugu": reflect.ValueOf(&wrap_unicode.Telugu).Elem(), + "Terminal_Punctuation": reflect.ValueOf(&wrap_unicode.Terminal_Punctuation).Elem(), + "Thaana": reflect.ValueOf(&wrap_unicode.Thaana).Elem(), + "Thai": reflect.ValueOf(&wrap_unicode.Thai).Elem(), + "Tibetan": reflect.ValueOf(&wrap_unicode.Tibetan).Elem(), + "Tifinagh": reflect.ValueOf(&wrap_unicode.Tifinagh).Elem(), + "Tirhuta": reflect.ValueOf(&wrap_unicode.Tirhuta).Elem(), + "Title": reflect.ValueOf(&wrap_unicode.Title).Elem(), + "TitleCase": reflect.ValueOf(wrap_unicode.TitleCase), + "To": reflect.ValueOf(wrap_unicode.To), + "ToLower": reflect.ValueOf(wrap_unicode.ToLower), + "ToTitle": reflect.ValueOf(wrap_unicode.ToTitle), + "ToUpper": reflect.ValueOf(wrap_unicode.ToUpper), + "TurkishCase": reflect.ValueOf(&wrap_unicode.TurkishCase).Elem(), + "Ugaritic": reflect.ValueOf(&wrap_unicode.Ugaritic).Elem(), + "Unified_Ideograph": reflect.ValueOf(&wrap_unicode.Unified_Ideograph).Elem(), + "Upper": reflect.ValueOf(&wrap_unicode.Upper).Elem(), + "UpperCase": reflect.ValueOf(wrap_unicode.UpperCase), + "UpperLower": reflect.ValueOf(wrap_unicode.UpperLower), + "Vai": reflect.ValueOf(&wrap_unicode.Vai).Elem(), + "Variation_Selector": reflect.ValueOf(&wrap_unicode.Variation_Selector).Elem(), + "Version": reflect.ValueOf(wrap_unicode.Version), + "Warang_Citi": reflect.ValueOf(&wrap_unicode.Warang_Citi).Elem(), + "White_Space": reflect.ValueOf(&wrap_unicode.White_Space).Elem(), + "Yi": reflect.ValueOf(&wrap_unicode.Yi).Elem(), + "Z": reflect.ValueOf(&wrap_unicode.Z).Elem(), + "Zl": reflect.ValueOf(&wrap_unicode.Zl).Elem(), + "Zp": reflect.ValueOf(&wrap_unicode.Zp).Elem(), + "Zs": reflect.ValueOf(&wrap_unicode.Zs).Elem(), }, } diff --git a/ng_test.go b/ng_test.go index 49f9cca..146aec6 100644 --- a/ng_test.go +++ b/ng_test.go @@ -69,6 +69,10 @@ func TestExitMsg(t *testing.T) { } func TestGofmt(t *testing.T) { + if v := runtime.Version(); !strings.HasPrefix("go1.11", v) { + t.Skipf("Skipping gofmt test for %s.", v) + } + exe, err := exec.LookPath("gofmt") if err != nil { From 77f62932008c67b0664ce3136bf4840583d4d6d2 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Tue, 28 Aug 2018 15:54:02 +0300 Subject: [PATCH 3/3] Fix go vet errors. * unreachable code * composite literal uses unkeyed fields * errorfmt format %s has arg XXX of wrong type * bad syntax for struct tag value --- eval/eval.go | 2 +- jupyter/messaging.go | 2 +- ngcore/ngcore.go | 1 - parser/parser.go | 5 ---- parser/shell.go | 1 - typecheck/typecheck.go | 59 +++++++++++++++++++------------------ typecheck/typecheck_test.go | 2 +- 7 files changed, 33 insertions(+), 39 deletions(-) diff --git a/eval/eval.go b/eval/eval.go index d00e64f..6f412f2 100644 --- a/eval/eval.go +++ b/eval/eval.go @@ -1798,7 +1798,7 @@ func (p *Program) evalFuncLiteral(e *expr.FuncLiteral, recvt *tipe.Named) reflec params := make([]tipe.Type, 1+len(funct.Params.Elems)) copy(params[1:], funct.Params.Elems) params[0] = &tipe.Interface{} // not recvt, breaking cycle - funct.Params = &tipe.Tuple{params} + funct.Params = &tipe.Tuple{Elems: params} } rt := p.reflector.ToRType(&funct) fn := reflect.MakeFunc(rt, func(args []reflect.Value) (res []reflect.Value) { diff --git a/jupyter/messaging.go b/jupyter/messaging.go index 311fdad..9939ba1 100644 --- a/jupyter/messaging.go +++ b/jupyter/messaging.go @@ -193,7 +193,7 @@ type executeReply struct { Status string `json:"status"` // set to "ok" ExecutionCount int `json:"execution_count,omitempty"` Payload []map[string]interface{} `json:"payload"` // deprecated - UserExpressions map[string]interface{} `json:"user_expressions` + UserExpressions map[string]interface{} `json:"user_expressions"` } type executeResult struct { diff --git a/ngcore/ngcore.go b/ngcore/ngcore.go index 85008eb..7b6803a 100644 --- a/ngcore/ngcore.go +++ b/ngcore/ngcore.go @@ -374,7 +374,6 @@ func (s *Session) Run(ctx context.Context, startInShell bool, sigint chan os.Sig s.Display(s.Stdout, res) state = s.ParserState } - return nil } func (s *Session) Close() { diff --git a/parser/parser.go b/parser/parser.go index 83704e3..4a2103a 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -422,8 +422,6 @@ func (p *Parser) parsePrimaryExpr() expr.Expr { return x } } - - return x } func maybePackageType(x expr.Expr) *tipe.Unresolved { @@ -1494,9 +1492,6 @@ func (p *Parser) parseFor() stmt.Stmt { Body: body(), } } - - // TODO - panic("TODO parseFor range") } func (p *Parser) parseSwitch() stmt.Stmt { diff --git a/parser/shell.go b/parser/shell.go index 0e165ef..639d276 100644 --- a/parser/shell.go +++ b/parser/shell.go @@ -137,7 +137,6 @@ func (p *Parser) parseShellSimpleCmd() (l *expr.ShellSimpleCmd) { l.Args = append(l.Args, w) } } - return l } func (p *Parser) maybeParseShellRedirect() (string, *expr.ShellRedirect) { diff --git a/typecheck/typecheck.go b/typecheck/typecheck.go index 470279c..fc72a49 100644 --- a/typecheck/typecheck.go +++ b/typecheck/typecheck.go @@ -539,7 +539,7 @@ func (c *Checker) stmt(s stmt.Stmt, retType *tipe.Tuple, retNames []string) tipe } cht, ok := p.typ.(*tipe.Chan) if !ok { - c.errorfmt("cannot send to non-channel type: %s", cht) + c.errorfmt("cannot send to non-channel type: %v", cht) return nil } p = c.expr(s.Value) @@ -548,7 +548,7 @@ func (c *Checker) stmt(s stmt.Stmt, retType *tipe.Tuple, retNames []string) tipe } c.convert(&p, cht.Elem) if p.mode == modeInvalid { - c.errorfmt("cannot send %s to %s", p.typ, cht) + c.errorfmt("cannot send %s to %v", p.typ, cht) } return nil @@ -1555,7 +1555,7 @@ func (c *Checker) exprBuiltinCall(e *expr.Call) partial { } if ch.Direction == tipe.ChanRecv { p.mode = modeInvalid - c.errorfmt("%s: cannot close receive-only channel", e) + c.errorfmt("%v: cannot close receive-only channel", e) return p } return p @@ -1859,7 +1859,6 @@ func (c *Checker) exprBuiltinCall(e *expr.Call) partial { default: panic(fmt.Sprintf("unknown builtin: %s", p.typ)) } - panic("TODO builtin") } func (c *Checker) exprPartialCall(e *expr.Call) partial { @@ -1930,12 +1929,12 @@ func (c *Checker) exprPartialCall(e *expr.Call) partial { if e.Ellipsis { if !funct.Variadic { p.mode = modeInvalid - c.errorfmt("cannot use ... with non-variadic function %s", funct) + c.errorfmt("cannot use ... with non-variadic function %v", funct) return p } if len(e.Args) == 1 && len(unpacked) > 1 { p.mode = modeInvalid - c.errorfmt("cannot use ... with multi-valued function %s", funct) + c.errorfmt("cannot use ... with multi-valued function %v", funct) return p } } @@ -1958,7 +1957,7 @@ func (c *Checker) exprPartialCall(e *expr.Call) partial { continue } p.mode = modeInvalid - c.errorfmt("too many arguments to function %s", funct) + c.errorfmt("too many arguments to function %v", funct) return p } @@ -2022,7 +2021,7 @@ func (c *Checker) exprPartialCall(e *expr.Call) partial { } if numArgs < len(params) { p.mode = modeInvalid - c.errorfmt("too few arguments in call to %s", funct) + c.errorfmt("too few arguments in call to %v", funct) return p } @@ -2206,7 +2205,7 @@ func (c *Checker) exprPartial(e expr.Expr, hint typeHint) (p partial) { if t, resolved := c.resolve(e.Type); resolved { t, isArray := t.(*tipe.Array) if !isArray { - c.errorfmt("type %s is not an array", t) + c.errorfmt("type %v is not an array", t) p.mode = modeInvalid return p } @@ -2596,7 +2595,7 @@ func (c *Checker) exprPartial(e expr.Expr, hint typeHint) (p partial) { } } p.mode = modeInvalid - c.errorfmt("%s undefined (type %s has no field or method %s)", e, typ, right) + c.errorfmt("%s undefined (type %v has no field or method %s)", e, typ, right) } } switch lt := lt.(type) { @@ -2728,29 +2727,32 @@ func (c *Checker) exprPartial(e expr.Expr, hint typeHint) (p partial) { c.errorfmt("TODO index %T", lt) return p } - if atTyp := c.memory.Method(lt, "At"); atTyp != nil { - want := "At(i, j int) T" - if len(e.Indicies) == 1 { - want = "At(i int) T" + + /* + if atTyp := c.memory.Method(lt, "At"); atTyp != nil { + want := "At(i, j int) T" + if len(e.Indicies) == 1 { + want = "At(i int) T" + } + if dim := len(atTyp.Params.Elems); dim == 0 || dim > 2 || dim != len(e.Indicies) || + atTyp.Params.Elems[0] != tipe.Int || (dim == 2 && atTyp.Params.Elems[1] != tipe.Int) || + len(atTyp.Results.Elems) != 1 { + p.mode = modeInvalid + c.errorfmt("cannot slice type %s, expecting method %s but type has %v", left.typ, want, atTyp) + return p + } + p.mode = modeVar + p.typ = atTyp.Results.Elems[0] + return p } - if dim := len(atTyp.Params.Elems); dim == 0 || dim > 2 || dim != len(e.Indicies) || - atTyp.Params.Elems[0] != tipe.Int || (dim == 2 && atTyp.Params.Elems[1] != tipe.Int) || - len(atTyp.Results.Elems) != 1 { + if setTyp := c.memory.Method(lt, "Set"); setTyp != nil { p.mode = modeInvalid - c.errorfmt("cannot slice type %s, expecting method %s but type has %s", left.typ, want, atTyp) + c.errorfmt("TODO Set index") return p } - p.mode = modeVar - p.typ = atTyp.Results.Elems[0] - return p - } - if setTyp := c.memory.Method(lt, "Set"); setTyp != nil { - p.mode = modeInvalid - c.errorfmt("TODO Set index") - return p - } - panic(fmt.Sprintf("typecheck.expr TODO Index: %s", format.Debug(e))) //, format.Debug(tipe.Underlying(left.typ)))) + panic(fmt.Sprintf("typecheck.expr TODO Index: %s", format.Debug(e))) //, format.Debug(tipe.Underlying(left.typ)))) + */ case *expr.Shell: c.pushScope() defer c.popScope() @@ -3409,7 +3411,6 @@ func convGoOp(op token.Token) gotoken.Token { return gotoken.REM case token.Pow: panic("TODO token.Pow") - return gotoken.REM case token.LogicalAnd: return gotoken.LAND case token.LogicalOr: diff --git a/typecheck/typecheck_test.go b/typecheck/typecheck_test.go index bd00cb4..69fca4e 100644 --- a/typecheck/typecheck_test.go +++ b/typecheck/typecheck_test.go @@ -98,7 +98,7 @@ var typeTests = []typeTest{ []string{ `a := [|]int64{{|"Col1","Col2"|}, {1, 2}, {3, 4}}`, }, - []identType{{"a", &tipe.Table{tipe.Int64}}}, + []identType{{"a", &tipe.Table{Type: tipe.Int64}}}, }, { []string{