1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307
|
/**
* Copyright 2014 Paul Querna
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package tff
import (
"errors"
"math"
"time"
)
// FFFoo struc... just blah
type FFFoo struct {
Blah int
}
// FFRecord struct
type FFRecord struct {
Timestamp int64 `json:"id,omitempty"`
OriginID uint32
Bar FFFoo
Method string `json:"meth"`
ReqID string
ServerIP string
RemoteIP string
BytesSent uint64
}
// TI18nName struct
// ffjson: skip
type TI18nName struct {
Ændret int64
Aוההקלדה uint32
Позната string
}
// XI18nName struct
type XI18nName struct {
Ændret int64
Aוההקלדה uint32
Позната string
}
type mystring string
// TsortName struct
// ffjson: skip
type TsortName struct {
C string
B int `json:"A"`
}
// XsortName struct
type XsortName struct {
C string
B int `json:"A"`
}
// Tobj struct
// ffjson: skip
type Tobj struct {
X Tint
}
// Xobj struct
type Xobj struct {
X Xint
}
// Tduration struct
// ffjson: skip
type Tduration struct {
X time.Duration
}
// Xduration struct
type Xduration struct {
X time.Duration
}
// TtimePtr struct
// ffjson: skip
type TtimePtr struct {
X *time.Time
}
// XtimePtr struct
type XtimePtr struct {
X *time.Time
}
// Tarray struct
// ffjson: skip
type Tarray struct {
X [3]int
}
// Xarray struct
type Xarray struct {
X [3]int
}
// TarrayPtr struct
// ffjson: skip
type TarrayPtr struct {
X [3]*int
}
// XarrayPtr struct
type XarrayPtr struct {
X [3]*int
}
// Tslice struct
// ffjson: skip
type Tslice struct {
X []int
}
//Xslice struct
type Xslice struct {
X []int
}
// TslicePtr struct
// ffjson: skip
type TslicePtr struct {
X []*int
}
// XslicePtr struct
type XslicePtr struct {
X []*int
}
// TMapStringPtr struct
// ffjson: skip
type TMapStringPtr struct {
X map[string]*int
}
// XMapStringPtr struct
type XMapStringPtr struct {
X map[string]*int
}
// TslicePtrStruct struct
// ffjson: skip
type TslicePtrStruct struct {
X []*Xstring
}
// XslicePtrStruct struct
type XslicePtrStruct struct {
X []*Xstring
}
// TMapPtrStruct struct
// ffjson: skip
type TMapPtrStruct struct {
X map[string]*Xstring
}
// XMapPtrStruct struct
type XMapPtrStruct struct {
X map[string]*Xstring
}
// Tstring struct
// ffjson: skip
type Tstring struct {
X string
}
// Xstring struct
type Xstring struct {
X string
}
// Tmystring struct
// ffjson: skip
type Tmystring struct {
X mystring
}
// Xmystring struct
type Xmystring struct {
X mystring
}
// TmystringPtr struct
// ffjson: skip
type TmystringPtr struct {
X *mystring
}
// XmystringPtr struct
type XmystringPtr struct {
X *mystring
}
// TstringTagged struct
// ffjson: skip
type TstringTagged struct {
X string `json:",string"`
}
// XstringTagged struct
type XstringTagged struct {
X string `json:",string"`
}
// TstringTaggedPtr struct
// ffjson: skip
type TstringTaggedPtr struct {
X *string `json:",string"`
}
// XstringTaggedPtr struct
type XstringTaggedPtr struct {
X *string `json:",string"`
}
// TintTagged struct
// ffjson: skip
type TintTagged struct {
X int `json:",string"`
}
//XintTagged struct
type XintTagged struct {
X int `json:",string"`
}
// TboolTagged struct
// ffjson: skip
type TboolTagged struct {
X int `json:",string"`
}
// XboolTagged struct
type XboolTagged struct {
X int `json:",string"`
}
// TMapStringString struct
// ffjson: skip
type TMapStringString struct {
X map[string]string
}
// XMapStringString struct
type XMapStringString struct {
X map[string]string
}
// Tbool struct
// ffjson: skip
type Tbool struct {
X bool
}
// Xbool struct
type Xbool struct {
X bool
}
// Tint struct
// ffjson: skip
type Tint struct {
X int
}
// Xint struct
type Xint struct {
X int
}
// Tbyte struct
// ffjson: skip
type Tbyte struct {
X byte
}
// Xbyte struct
type Xbyte struct {
X byte
}
// Tint8 struct
// ffjson: skip
type Tint8 struct {
X int8
}
// Xint8 struct
type Xint8 struct {
X int8
}
// Tint16 struct
// ffjson: skip
type Tint16 struct {
X int16
}
// Xint16 stuct
type Xint16 struct {
X int16
}
// Tint32 struct
// ffjson: skip
type Tint32 struct {
X int32
}
// Xint32 struct
type Xint32 struct {
X int32
}
// Tint64 struct
// ffjson: skip
type Tint64 struct {
X int64
}
// Xint64 struct
type Xint64 struct {
X int64
}
// Tuint struct
// ffjson: skip
type Tuint struct {
X uint
}
// Xuint struct
type Xuint struct {
X uint
}
// Tuint8 struct
// ffjson: skip
type Tuint8 struct {
X uint8
}
// Xuint8 struct
type Xuint8 struct {
X uint8
}
// Tuint16 struct
// ffjson: skip
type Tuint16 struct {
X uint16
}
// Xuint16 struct
type Xuint16 struct {
X uint16
}
// Tuint32 struct
// ffjson: skip
type Tuint32 struct {
X uint32
}
// Xuint32 struct
type Xuint32 struct {
X uint32
}
// Tuint64 struct
// ffjson: skip
type Tuint64 struct {
X uint64
}
// Xuint64 struct
type Xuint64 struct {
X uint64
}
// Tuintptr struct
// ffjson: skip
type Tuintptr struct {
X uintptr
}
// Xuintptr struct
type Xuintptr struct {
X uintptr
}
// Tfloat32 struct
// ffjson: skip
type Tfloat32 struct {
X float32
}
// Xfloat32 struct
type Xfloat32 struct {
X float32
}
// Tfloat64 struct
// ffjson: skip
type Tfloat64 struct {
X float64
}
// Xfloat64 struct
type Xfloat64 struct {
X float64
}
// ATduration struct
// Arrays
// ffjson: skip
type ATduration struct {
X [3]time.Duration
}
// AXduration struct
type AXduration struct {
X [3]time.Duration
}
// ATbool struct
// ffjson: skip
type ATbool struct {
X [3]bool
}
// AXbool struct
type AXbool struct {
X [3]bool
}
// ATint struct
// ffjson: skip
type ATint struct {
X [3]int
}
// AXint struct
type AXint struct {
X [3]int
}
// ATbyte struct
// ffjson: skip
type ATbyte struct {
X [3]byte
}
// AXbyte struct
type AXbyte struct {
X [3]byte
}
// ATint8 struct
// ffjson: skip
type ATint8 struct {
X [3]int8
}
// AXint8 struct
type AXint8 struct {
X [3]int8
}
// ATint16 struct
// ffjson: skip
type ATint16 struct {
X [3]int16
}
// AXint16 struct
type AXint16 struct {
X [3]int16
}
// ATint32 struct
// ffjson: skip
type ATint32 struct {
X [3]int32
}
// AXint32 struct
type AXint32 struct {
X [3]int32
}
// ATint64 struct
// ffjson: skip
type ATint64 struct {
X [3]int64
}
// AXint64 struct
type AXint64 struct {
X [3]int64
}
// ATuint struct
// ffjson: skip
type ATuint struct {
X [3]uint
}
// AXuint struct
type AXuint struct {
X [3]uint
}
// ATuint8 struct
// ffjson: skip
type ATuint8 struct {
X [3]uint8
}
// AXuint8 struct
type AXuint8 struct {
X [3]uint8
}
// ATuint16 struct
// ffjson: skip
type ATuint16 struct {
X [3]uint16
}
// AXuint16 struct
type AXuint16 struct {
X [3]uint16
}
// ATuint32 struct
// ffjson: skip
type ATuint32 struct {
X [3]uint32
}
// AXuint32 struct
type AXuint32 struct {
X [3]uint32
}
// ATuint64 struct
// ffjson: skip
type ATuint64 struct {
X [3]uint64
}
// AXuint64 struct
type AXuint64 struct {
X [3]uint64
}
// ATuintptr struct
// ffjson: skip
type ATuintptr struct {
X [3]uintptr
}
// AXuintptr struct
type AXuintptr struct {
X [3]uintptr
}
// ATfloat32 struct
// ffjson: skip
type ATfloat32 struct {
X [3]float32
}
// AXfloat32 struct
type AXfloat32 struct {
X [3]float32
}
// ATfloat64 struct
// ffjson: skip
type ATfloat64 struct {
X [3]float64
}
// AXfloat64 struct
type AXfloat64 struct {
X [3]float64
}
// ATtime struct
// ffjson: skip
type ATtime struct {
X [3]time.Time
}
// AXtime struct
type AXtime struct {
X [3]time.Time
}
// STduration struct
// Slices
// ffjson: skip
type STduration struct {
X []time.Duration
}
// SXduration struct
type SXduration struct {
X []time.Duration
}
// STbool struct
// ffjson: skip
type STbool struct {
X []bool
}
// SXbool struct
type SXbool struct {
X []bool
}
// STint struct
// ffjson: skip
type STint struct {
X []int
}
// SXint struct
type SXint struct {
X []int
}
// STbyte struct
// ffjson: skip
type STbyte struct {
X []byte
}
// SXbyte struct
type SXbyte struct {
X []byte
}
// STint8 struct
// ffjson: skip
type STint8 struct {
X []int8
}
// SXint8 struct
type SXint8 struct {
X []int8
}
// STint16 struct
// ffjson: skip
type STint16 struct {
X []int16
}
// SXint16 struct
type SXint16 struct {
X []int16
}
// STint32 struct
// ffjson: skip
type STint32 struct {
X []int32
}
// SXint32 struct
type SXint32 struct {
X []int32
}
// STint64 struct
// ffjson: skip
type STint64 struct {
X []int64
}
// SXint64 struct
type SXint64 struct {
X []int64
}
// STuint struct
// ffjson: skip
type STuint struct {
X []uint
}
// SXuint struct
type SXuint struct {
X []uint
}
// STuint8 struct
// ffjson: skip
type STuint8 struct {
X []uint8
}
// SXuint8 struct
type SXuint8 struct {
X []uint8
}
// STuint16 struct
// ffjson: skip
type STuint16 struct {
X []uint16
}
// SXuint16 struct
type SXuint16 struct {
X []uint16
}
// STuint32 struct
// ffjson: skip
type STuint32 struct {
X []uint32
}
// SXuint32 struct
type SXuint32 struct {
X []uint32
}
// STuint64 struct
// ffjson: skip
type STuint64 struct {
X []uint64
}
// SXuint64 struct
type SXuint64 struct {
X []uint64
}
// STuintptr struct
// ffjson: skip
type STuintptr struct {
X []uintptr
}
// SXuintptr struct
type SXuintptr struct {
X []uintptr
}
// STfloat32 struct
// ffjson: skip
type STfloat32 struct {
X []float32
}
// SXfloat32 struct
type SXfloat32 struct {
X []float32
}
// STfloat64 struct
// ffjson: skip
type STfloat64 struct {
X []float64
}
// SXfloat64 struct
type SXfloat64 struct {
X []float64
}
// STtime struct
// ffjson: skip
type STtime struct {
X []time.Time
}
// SXtime struct
type SXtime struct {
X []time.Time
}
// TMapStringMapString struct
// Nested
// ffjson: skip
type TMapStringMapString struct {
X map[string]map[string]string
}
// XMapStringMapString struct
type XMapStringMapString struct {
X map[string]map[string]string
}
// TMapStringAString struct
// ffjson: skip
type TMapStringAString struct {
X map[string][3]string
}
// XMapStringAString struct
type XMapStringAString struct {
X map[string][3]string
}
// TSAAtring struct
// ffjson: skip
type TSAAtring struct {
X [2][3]string
}
// XSAAtring struct
type XSAAtring struct {
X [2][3]string
}
// TSAString struct
// ffjson: skip
type TSAString struct {
X [][3]string
}
// XSAString struct
type XSAString struct {
X [][3]string
}
// Optionals tests from golang test suite
type Optionals struct {
Sr string `json:"sr"`
So string `json:"so,omitempty"`
Sw string `json:"-"`
Ir int `json:"omitempty"` // actually named omitempty, not an option
Io int `json:"io,omitempty"`
Slr []string `json:"slr,random"`
Slo []string `json:"slo,omitempty"`
Mr map[string]interface{} `json:"mr"`
Mo map[string]interface{} `json:",omitempty"`
Fr float64 `json:"fr"`
Fo float64 `json:"fo,omitempty"`
Br bool `json:"br"`
Bo bool `json:"bo,omitempty"`
Ur uint `json:"ur"`
Uo uint `json:"uo,omitempty"`
Str struct{} `json:"str"`
Sto struct{} `json:"sto,omitempty"`
}
var unsupportedValues = []interface{}{
math.NaN(),
math.Inf(-1),
math.Inf(1),
}
var optionalsExpected = `{
"sr": "",
"omitempty": 0,
"slr": null,
"mr": {},
"fr": 0,
"br": false,
"ur": 0,
"str": {},
"sto": {}
}`
// StringTag struct
type StringTag struct {
BoolStr bool `json:",string"`
IntStr int64 `json:",string"`
FltStr float64 `json:",string"`
StrStr string `json:",string"`
}
var stringTagExpected = `{
"BoolStr": "true",
"IntStr": "42",
"FltStr": "0",
"StrStr": "\"xzbit\""
}`
// OmitAll struct
type OmitAll struct {
Ostr string `json:",omitempty"`
Oint int `json:",omitempty"`
Obool bool `json:",omitempty"`
Odouble float64 `json:",omitempty"`
Ointer interface{} `json:",omitempty"`
Omap map[string]interface{} `json:",omitempty"`
OstrP *string `json:",omitempty"`
OintP *int `json:",omitempty"`
// TODO: Re-enable when issue #55 is fixed.
OboolP *bool `json:",omitempty"`
OmapP *map[string]interface{} `json:",omitempty"`
Astr []string `json:",omitempty"`
Aint []int `json:",omitempty"`
Abool []bool `json:",omitempty"`
Adouble []float64 `json:",omitempty"`
}
var omitAllExpected = `{}`
// NoExported struct
type NoExported struct {
field1 string
field2 string
field3 string
}
var noExportedExpected = `{}`
// OmitFirst struct
type OmitFirst struct {
Ostr string `json:",omitempty"`
Str string
}
var omitFirstExpected = `{
"Str": ""
}`
// OmitLast struct
type OmitLast struct {
Xstr string `json:",omitempty"`
Str string
}
var omitLastExpected = `{
"Str": ""
}`
// byte slices are special even if they're renamed types.
type renamedByte byte
type renamedByteSlice []byte
type renamedRenamedByteSlice []renamedByte
// ByteSliceNormal struct
type ByteSliceNormal struct {
X []byte
}
// ByteSliceRenamed stuct
type ByteSliceRenamed struct {
X renamedByteSlice
}
// ByteSliceDoubleRenamed struct
type ByteSliceDoubleRenamed struct {
X renamedRenamedByteSlice
}
// Ref has Marshaler and Unmarshaler methods with pointer receiver.
type Ref int
// MarshalJSON func
func (*Ref) MarshalJSON() ([]byte, error) {
return []byte(`"ref"`), nil
}
// UnmarshalJSON func
func (r *Ref) UnmarshalJSON([]byte) error {
*r = 12
return nil
}
// Val has Marshaler methods with value receiver.
type Val int
// MarshalJSON var
func (Val) MarshalJSON() ([]byte, error) {
return []byte(`"val"`), nil
}
// RefText has Marshaler and Unmarshaler methods with pointer receiver.
type RefText int
// MarshalText func
func (*RefText) MarshalText() ([]byte, error) {
return []byte(`"ref"`), nil
}
// UnmarshalText func
func (r *RefText) UnmarshalText([]byte) error {
*r = 13
return nil
}
// ValText has Marshaler methods with value receiver.
type ValText int
// MarshalText val
func (ValText) MarshalText() ([]byte, error) {
return []byte(`"val"`), nil
}
// C implements Marshaler and returns unescaped JSON.
type C int
// MarshalJSON func
func (C) MarshalJSON() ([]byte, error) {
return []byte(`"<&>"`), nil
}
// CText implements Marshaler and returns unescaped text.
type CText int
// MarshalText func
func (CText) MarshalText() ([]byte, error) {
return []byte(`"<&>"`), nil
}
// ErrGiveError generates error
var ErrGiveError = errors.New("GiveError error")
// GiveError always returns an ErrGiveError on Marshal/Unmarshal.
type GiveError struct{}
// MarshalJSON func
func (r GiveError) MarshalJSON() ([]byte, error) {
return nil, ErrGiveError
}
// UnmarshalJSON func
func (r *GiveError) UnmarshalJSON([]byte) error {
return ErrGiveError
}
// IntType type
type IntType int
// MyStruct struc
type MyStruct struct {
IntType
}
// BugA struct
type BugA struct {
S string
}
// BugB struct
type BugB struct {
BugA
S string
}
// BugC struct
type BugC struct {
S string
}
// BugX struct
// Legal Go: We never use the repeated embedded field (S).
type BugX struct {
A int
BugA
BugB
}
// BugD struct
type BugD struct { // Same as BugA after tagging.
XXX string `json:"S"`
}
// BugY struct
// BugD's tagged S field should dominate BugA's.
type BugY struct {
BugA
BugD
}
// BugZ struct
// There are no tags here, so S should not appear.
type BugZ struct {
BugA
BugC
BugY // Contains a tagged S field through BugD; should not dominate.
}
// FfFuzz struct
type FfFuzz struct {
A uint8
B uint16
C uint32
D uint64
E int8
F int16
G int32
H int64
I float32
J float64
M byte
N rune
O int
P uint
Q string
R bool
S time.Time
Ap *uint8
Bp *uint16
Cp *uint32
Dp *uint64
Ep *int8
Fp *int16
Gp *int32
Hp *int64
IP *float32
Jp *float64
Mp *byte
Np *rune
Op *int
Pp *uint
Qp *string
Rp *bool
Sp *time.Time
Aa []uint8
Ba []uint16
Ca []uint32
Da []uint64
Ea []int8
Fa []int16
Ga []int32
Ha []int64
Ia []float32
Ja []float64
Ma []byte
Na []rune
Oa []int
Pa []uint
Qa []string
Ra []bool
Aap []*uint8
Bap []*uint16
Cap []*uint32
Dap []*uint64
Eap []*int8
Fap []*int16
Gap []*int32
Hap []*int64
Iap []*float32
Jap []*float64
Map []*byte
Nap []*rune
Oap []*int
Pap []*uint
Qap []*string
Rap []*bool
}
// FuzzOmitEmpty struct
// ffjson: skip
type FuzzOmitEmpty struct {
A uint8 `json:",omitempty"`
B uint16 `json:",omitempty"`
C uint32 `json:",omitempty"`
D uint64 `json:",omitempty"`
E int8 `json:",omitempty"`
F int16 `json:",omitempty"`
G int32 `json:",omitempty"`
H int64 `json:",omitempty"`
I float32 `json:",omitempty"`
J float64 `json:",omitempty"`
M byte `json:",omitempty"`
N rune `json:",omitempty"`
O int `json:",omitempty"`
P uint `json:",omitempty"`
Q string `json:",omitempty"`
R bool `json:",omitempty"`
S time.Time `json:",omitempty"`
Ap *uint8 `json:",omitempty"`
Bp *uint16 `json:",omitempty"`
Cp *uint32 `json:",omitempty"`
Dp *uint64 `json:",omitempty"`
Ep *int8 `json:",omitempty"`
Fp *int16 `json:",omitempty"`
Gp *int32 `json:",omitempty"`
Hp *int64 `json:",omitempty"`
IP *float32 `json:",omitempty"`
Jp *float64 `json:",omitempty"`
Mp *byte `json:",omitempty"`
Np *rune `json:",omitempty"`
Op *int `json:",omitempty"`
Pp *uint `json:",omitempty"`
Qp *string `json:",omitempty"`
Rp *bool `json:",omitempty"`
Sp *time.Time `json:",omitempty"`
Aa []uint8 `json:",omitempty"`
Ba []uint16 `json:",omitempty"`
Ca []uint32 `json:",omitempty"`
Da []uint64 `json:",omitempty"`
Ea []int8 `json:",omitempty"`
Fa []int16 `json:",omitempty"`
Ga []int32 `json:",omitempty"`
Ha []int64 `json:",omitempty"`
Ia []float32 `json:",omitempty"`
Ja []float64 `json:",omitempty"`
Ma []byte `json:",omitempty"`
Na []rune `json:",omitempty"`
Oa []int `json:",omitempty"`
Pa []uint `json:",omitempty"`
Qa []string `json:",omitempty"`
Ra []bool `json:",omitempty"`
Aap []*uint8 `json:",omitempty"`
Bap []*uint16 `json:",omitempty"`
Cap []*uint32 `json:",omitempty"`
Dap []*uint64 `json:",omitempty"`
Eap []*int8 `json:",omitempty"`
Fap []*int16 `json:",omitempty"`
Gap []*int32 `json:",omitempty"`
Hap []*int64 `json:",omitempty"`
Iap []*float32 `json:",omitempty"`
Jap []*float64 `json:",omitempty"`
Map []*byte `json:",omitempty"`
Nap []*rune `json:",omitempty"`
Oap []*int `json:",omitempty"`
Pap []*uint `json:",omitempty"`
Qap []*string `json:",omitempty"`
Rap []*bool `json:",omitempty"`
}
// FfFuzzOmitEmpty struct
type FfFuzzOmitEmpty struct {
A uint8 `json:",omitempty"`
B uint16 `json:",omitempty"`
C uint32 `json:",omitempty"`
D uint64 `json:",omitempty"`
E int8 `json:",omitempty"`
F int16 `json:",omitempty"`
G int32 `json:",omitempty"`
H int64 `json:",omitempty"`
I float32 `json:",omitempty"`
J float64 `json:",omitempty"`
M byte `json:",omitempty"`
N rune `json:",omitempty"`
O int `json:",omitempty"`
P uint `json:",omitempty"`
Q string `json:",omitempty"`
R bool `json:",omitempty"`
S time.Time `json:",omitempty"`
Ap *uint8 `json:",omitempty"`
Bp *uint16 `json:",omitempty"`
Cp *uint32 `json:",omitempty"`
Dp *uint64 `json:",omitempty"`
Ep *int8 `json:",omitempty"`
Fp *int16 `json:",omitempty"`
Gp *int32 `json:",omitempty"`
Hp *int64 `json:",omitempty"`
IP *float32 `json:",omitempty"`
Jp *float64 `json:",omitempty"`
Mp *byte `json:",omitempty"`
Np *rune `json:",omitempty"`
Op *int `json:",omitempty"`
Pp *uint `json:",omitempty"`
Qp *string `json:",omitempty"`
Rp *bool `json:",omitempty"`
Sp *time.Time `json:",omitempty"`
Aa []uint8 `json:",omitempty"`
Ba []uint16 `json:",omitempty"`
Ca []uint32 `json:",omitempty"`
Da []uint64 `json:",omitempty"`
Ea []int8 `json:",omitempty"`
Fa []int16 `json:",omitempty"`
Ga []int32 `json:",omitempty"`
Ha []int64 `json:",omitempty"`
Ia []float32 `json:",omitempty"`
Ja []float64 `json:",omitempty"`
Ma []byte `json:",omitempty"`
Na []rune `json:",omitempty"`
Oa []int `json:",omitempty"`
Pa []uint `json:",omitempty"`
Qa []string `json:",omitempty"`
Ra []bool `json:",omitempty"`
Aap []*uint8 `json:",omitempty"`
Bap []*uint16 `json:",omitempty"`
Cap []*uint32 `json:",omitempty"`
Dap []*uint64 `json:",omitempty"`
Eap []*int8 `json:",omitempty"`
Fap []*int16 `json:",omitempty"`
Gap []*int32 `json:",omitempty"`
Hap []*int64 `json:",omitempty"`
Iap []*float32 `json:",omitempty"`
Jap []*float64 `json:",omitempty"`
Map []*byte `json:",omitempty"`
Nap []*rune `json:",omitempty"`
Oap []*int `json:",omitempty"`
Pap []*uint `json:",omitempty"`
Qap []*string `json:",omitempty"`
Rap []*bool `json:",omitempty"`
}
// FuzzString struct
// ffjson: skip
type FuzzString struct {
A uint8 `json:",string"`
B uint16 `json:",string"`
C uint32 `json:",string"`
D uint64 `json:",string"`
E int8 `json:",string"`
F int16 `json:",string"`
G int32 `json:",string"`
H int64 `json:",string"`
I float32 `json:",string"`
J float64 `json:",string"`
M byte `json:",string"`
N rune `json:",string"`
O int `json:",string"`
P uint `json:",string"`
Q string `json:",string"`
R bool `json:",string"`
// https://github.com/golang/go/issues/9812
// S time.Time `json:",string"`
Ap *uint8 `json:",string"`
Bp *uint16 `json:",string"`
Cp *uint32 `json:",string"`
Dp *uint64 `json:",string"`
Ep *int8 `json:",string"`
Fp *int16 `json:",string"`
Gp *int32 `json:",string"`
Hp *int64 `json:",string"`
IP *float32 `json:",string"`
Jp *float64 `json:",string"`
Mp *byte `json:",string"`
Np *rune `json:",string"`
Op *int `json:",string"`
Pp *uint `json:",string"`
Qp *string `json:",string"`
Rp *bool `json:",string"`
// https://github.com/golang/go/issues/9812
// Sp *time.Time `json:",string"`
}
// FfFuzzString struct
type FfFuzzString struct {
A uint8 `json:",string"`
B uint16 `json:",string"`
C uint32 `json:",string"`
D uint64 `json:",string"`
E int8 `json:",string"`
F int16 `json:",string"`
G int32 `json:",string"`
H int64 `json:",string"`
I float32 `json:",string"`
J float64 `json:",string"`
M byte `json:",string"`
N rune `json:",string"`
O int `json:",string"`
P uint `json:",string"`
Q string `json:",string"`
R bool `json:",string"`
// https://github.com/golang/go/issues/9812
// S time.Time `json:",string"`
Ap *uint8 `json:",string"`
Bp *uint16 `json:",string"`
Cp *uint32 `json:",string"`
Dp *uint64 `json:",string"`
Ep *int8 `json:",string"`
Fp *int16 `json:",string"`
Gp *int32 `json:",string"`
Hp *int64 `json:",string"`
IP *float32 `json:",string"`
Jp *float64 `json:",string"`
Mp *byte `json:",string"`
Np *rune `json:",string"`
Op *int `json:",string"`
Pp *uint `json:",string"`
Qp *string `json:",string"`
Rp *bool `json:",string"`
// https://github.com/golang/go/issues/9812
// Sp *time.Time `json:",string"`
}
// TTestMaps struct
// ffjson: skip
type TTestMaps struct {
Aa map[string]uint8
Ba map[string]uint16
Ca map[string]uint32
Da map[string]uint64
Ea map[string]int8
Fa map[string]int16
Ga map[string]int32
Ha map[string]int64
Ia map[string]float32
Ja map[string]float64
Ma map[string]byte
Na map[string]rune
Oa map[string]int
Pa map[string]uint
Qa map[string]string
Ra map[string]bool
AaP map[string]*uint8
BaP map[string]*uint16
CaP map[string]*uint32
DaP map[string]*uint64
EaP map[string]*int8
FaP map[string]*int16
GaP map[string]*int32
HaP map[string]*int64
IaP map[string]*float32
JaP map[string]*float64
MaP map[string]*byte
NaP map[string]*rune
OaP map[string]*int
PaP map[string]*uint
QaP map[string]*string
RaP map[string]*bool
}
// XTestMaps struct
type XTestMaps struct {
TTestMaps
}
// NoEncoder struct
// ffjson: noencoder
type NoEncoder struct {
C string
B int `json:"A"`
}
// NoDecoder struct
// ffjson: nodecoder
type NoDecoder struct {
C string
B int `json:"A"`
}
// TEmbeddedStructures struct
// ffjson: skip
type TEmbeddedStructures struct {
X []interface{}
Y struct {
X int
}
Z []struct {
X int
}
U map[string]struct {
X int
}
V []map[string]struct {
X int
}
W [5]map[string]struct {
X int
}
Q [][]string
}
// XEmbeddedStructures struct
type XEmbeddedStructures struct {
X []interface{}
Y struct {
X int
}
Z []struct {
X int
}
U map[string]struct {
X int
}
V []map[string]struct {
X int
}
W [5]map[string]struct {
X int
}
Q [][]string
}
// TRenameTypes struct
// ffjson: skip
// Side-effect of this test is also to verify that Encoder/Decoder skipping works.
type TRenameTypes struct {
X struct {
X int
} `json:"X-renamed"`
Y NoEncoder `json:"Y-renamed"`
Z string `json:"Z-renamed"`
U *NoDecoder `json:"U-renamed"`
}
// XRenameTypes struct
type XRenameTypes struct {
X struct {
X int
} `json:"X-renamed"`
Y NoEncoder `json:"Y-renamed"`
Z string `json:"Z-renamed"`
U *NoDecoder `json:"U-renamed"`
}
// ReTypedA type
type ReTypedA uint8
// ReTypedB type
type ReTypedB uint16
// ReTypedC type
type ReTypedC uint32
// ReTypedD type
type ReTypedD uint64
// ReTypedE type
type ReTypedE int8
// ReTypedF type
type ReTypedF int16
// ReTypedG type
type ReTypedG int32
// ReTypedH type
type ReTypedH int64
// ReTypedI type
type ReTypedI float32
// ReTypedJ type
type ReTypedJ float64
// ReTypedM type
type ReTypedM byte
// ReTypedN type
type ReTypedN rune
// ReTypedO type
type ReTypedO int
// ReTypedP type
type ReTypedP uint
// ReTypedQ type
type ReTypedQ string
// ReTypedR type
type ReTypedR bool
// ReTypedS type
type ReTypedS time.Time
// ReTypedAp type
type ReTypedAp *uint8
// ReTypedBp type
type ReTypedBp *uint16
// ReTypedCp type
type ReTypedCp *uint32
// ReTypedDp type
type ReTypedDp *uint64
// ReTypedEp type
type ReTypedEp *int8
// ReTypedFp type
type ReTypedFp *int16
// ReTypedGp type
type ReTypedGp *int32
// ReTypedHp type
type ReTypedHp *int64
// ReTypedIP type
type ReTypedIP *float32
// ReTypedJp type
type ReTypedJp *float64
// ReTypedMp type
type ReTypedMp *byte
// ReTypedNp type
type ReTypedNp *rune
// ReTypedOp type
type ReTypedOp *int
// ReTypedPp type
type ReTypedPp *uint
// ReTypedQp type
type ReTypedQp *string
// ReTypedRp type
type ReTypedRp *bool
// ReTypedSp type
type ReTypedSp *time.Time
// ReTypedAa type
type ReTypedAa []uint8
// ReTypedBa type
type ReTypedBa []uint16
// ReTypedCa type
type ReTypedCa []uint32
// ReTypedDa type
type ReTypedDa []uint64
// ReTypedEa type
type ReTypedEa []int8
// ReTypedFa type
type ReTypedFa []int16
// ReTypedGa type
type ReTypedGa []int32
// ReTypedHa type
type ReTypedHa []int64
// ReTypedIa type
type ReTypedIa []float32
// ReTypedJa type
type ReTypedJa []float64
// ReTypedMa type
type ReTypedMa []byte
// ReTypedNa type
type ReTypedNa []rune
// ReTypedOa type
type ReTypedOa []int
// ReTypedPa type
type ReTypedPa []uint
// ReTypedQa type
type ReTypedQa []string
// ReTypedRa type
type ReTypedRa []bool
// ReTypedAap type
type ReTypedAap []*uint8
// ReTypedBap type
type ReTypedBap []*uint16
// ReTypedCap type
type ReTypedCap []*uint32
// ReTypedDap type
type ReTypedDap []*uint64
// ReTypedEap type
type ReTypedEap []*int8
// ReTypedFap type
type ReTypedFap []*int16
// ReTypedGap type
type ReTypedGap []*int32
// ReTypedHap type
type ReTypedHap []*int64
// ReTypedIap type
type ReTypedIap []*float32
// ReTypedJap type
type ReTypedJap []*float64
// ReTypedMap type
type ReTypedMap []*byte
// ReTypedNap type
type ReTypedNap []*rune
// ReTypedOap type
type ReTypedOap []*int
// ReTypedPap type
type ReTypedPap []*uint
// ReTypedQap type
type ReTypedQap []*string
// ReTypedRap type
type ReTypedRap []*bool
// ReTypedXa type
type ReTypedXa NoDecoder
// ReTypedXb type
type ReTypedXb NoEncoder
// ReTypedXc type
type ReTypedXc *NoDecoder
// ReTypedXd type
type ReTypedXd *NoEncoder
// ReReTypedA type
type ReReTypedA ReTypedA
// ReReTypedS type
type ReReTypedS ReTypedS
// ReReTypedAp type
type ReReTypedAp ReTypedAp
// ReReTypedSp type
type ReReTypedSp ReTypedSp
// ReReTypedAa type
type ReReTypedAa ReTypedAa
// ReReTypedAap type
type ReReTypedAap ReTypedAap
// ReReTypedXa type
type ReReTypedXa ReTypedXa
// ReReTypedXb type
type ReReTypedXb ReTypedXb
// ReReTypedXc type
type ReReTypedXc ReTypedXc
// ReReTypedXd type
type ReReTypedXd ReTypedXd
// RePReTypedA type
type RePReTypedA *ReTypedA
// ReSReTypedS type
type ReSReTypedS []ReTypedS
// ReAReTypedAp type
type ReAReTypedAp [4]ReTypedAp
// TReTyped struct
// ffjson: ignore
type TReTyped struct {
A ReTypedA
B ReTypedB
C ReTypedC
D ReTypedD
E ReTypedE
F ReTypedF
G ReTypedG
H ReTypedH
I ReTypedI
J ReTypedJ
M ReTypedM
N ReTypedN
O ReTypedO
P ReTypedP
Q ReTypedQ
R ReTypedR
S ReTypedS
Ap ReTypedAp
Bp ReTypedBp
Cp ReTypedCp
Dp ReTypedDp
Ep ReTypedEp
Fp ReTypedFp
Gp ReTypedGp
Hp ReTypedHp
IP ReTypedIP
Jp ReTypedJp
Mp ReTypedMp
Np ReTypedNp
Op ReTypedOp
Pp ReTypedPp
Qp ReTypedQp
Rp ReTypedRp
// FIXME: https://github.com/pquerna/ffjson/issues/108
//Sp ReTypedSp
// Bug in encoding/json: Bug in encoding/json: json: cannot unmarshal string into Go value of type tff.ReTypedAa
//Aa ReTypedAa
Ba ReTypedBa
Ca ReTypedCa
Da ReTypedDa
Ea ReTypedEa
Fa ReTypedFa
Ga ReTypedGa
Ha ReTypedHa
Ia ReTypedIa
Ja ReTypedJa
// Bug in encoding/json: json: cannot unmarshal string into Go value of type tff.ReTypedMa
// Ma ReTypedMa
Na ReTypedNa
Oa ReTypedOa
Pa ReTypedPa
Qa ReTypedQa
Ra ReTypedRa
Aap ReTypedAap
Bap ReTypedBap
Cap ReTypedCap
Dap ReTypedDap
Eap ReTypedEap
Fap ReTypedFap
Gap ReTypedGap
Hap ReTypedHap
Iap ReTypedIap
Jap ReTypedJap
Map ReTypedMap
Nap ReTypedNap
Oap ReTypedOap
Pap ReTypedPap
Qap ReTypedQap
Rap ReTypedRap
Xa ReTypedXa
Xb ReTypedXb
Rra ReReTypedA
Rrs ReReTypedS
Rrap ReReTypedAp
// FIXME: https://github.com/pquerna/ffjson/issues/108
// Rrsp ReReTypedSp
// Rrxc ReReTypedXc
// Rrxd ReReTypedXd
// Bug in encoding/json: json: json: cannot unmarshal string into Go value of type tff.ReReTypedAa
// Rraa ReReTypedAa
Rraap ReReTypedAap
Rrxa ReReTypedXa
Rrxb ReReTypedXb
Rpra RePReTypedA
Rsrs ReSReTypedS
}
// XReTyped struct
type XReTyped struct {
A ReTypedA
B ReTypedB
C ReTypedC
D ReTypedD
E ReTypedE
F ReTypedF
G ReTypedG
H ReTypedH
I ReTypedI
J ReTypedJ
M ReTypedM
N ReTypedN
O ReTypedO
P ReTypedP
Q ReTypedQ
R ReTypedR
S ReTypedS
Ap ReTypedAp
Bp ReTypedBp
Cp ReTypedCp
Dp ReTypedDp
Ep ReTypedEp
Fp ReTypedFp
Gp ReTypedGp
Hp ReTypedHp
IP ReTypedIP
Jp ReTypedJp
Mp ReTypedMp
Np ReTypedNp
Op ReTypedOp
Pp ReTypedPp
Qp ReTypedQp
Rp ReTypedRp
// FIXME: https://github.com/pquerna/ffjson/issues/108
//Sp ReTypedSp
// Bug in encoding/json: Bug in encoding/json: json: cannot unmarshal string into Go value of type tff.ReTypedAa
// Aa ReTypedAa
Ba ReTypedBa
Ca ReTypedCa
Da ReTypedDa
Ea ReTypedEa
Fa ReTypedFa
Ga ReTypedGa
Ha ReTypedHa
Ia ReTypedIa
Ja ReTypedJa
// Bug in encoding/json: Bug in encoding/json: json: cannot unmarshal string into Go value of type tff.ReTypedMa
//Ma ReTypedMa
Na ReTypedNa
Oa ReTypedOa
Pa ReTypedPa
Qa ReTypedQa
Ra ReTypedRa
Aap ReTypedAap
Bap ReTypedBap
Cap ReTypedCap
Dap ReTypedDap
Eap ReTypedEap
Fap ReTypedFap
Gap ReTypedGap
Hap ReTypedHap
Iap ReTypedIap
Jap ReTypedJap
Map ReTypedMap
Nap ReTypedNap
Oap ReTypedOap
Pap ReTypedPap
Qap ReTypedQap
Rap ReTypedRap
Xa ReTypedXa
Xb ReTypedXb
Rra ReReTypedA
Rrs ReReTypedS
Rrap ReReTypedAp
// FIXME: https://github.com/pquerna/ffjson/issues/108
// Rrsp ReReTypedSp
// Rrxc ReReTypedXc
// Rrxd ReReTypedXd
// Bug in encoding/json: json: json: cannot unmarshal string into Go value of type tff.ReReTypedAa
// Rraa ReReTypedAa
Rraap ReReTypedAap
Rrxa ReReTypedXa
Rrxb ReReTypedXb
Rpra RePReTypedA
Rsrs ReSReTypedS
}
// TInlineStructs struct
// ffjson: skip
type TInlineStructs struct {
B struct {
A uint8
B uint16
C uint32
D uint64
E int8
F int16
G int32
H int64
I float32
J float64
M byte
N rune
O int
P uint
Q string
R bool
S time.Time
Ap *uint8
Bp *uint16
Cp *uint32
Dp *uint64
Ep *int8
Fp *int16
Gp *int32
Hp *int64
IP *float32
Jp *float64
Mp *byte
Np *rune
Op *int
Pp *uint
Qp *string
Rp *bool
Sp *time.Time
Aa []uint8
Ba []uint16
Ca []uint32
Da []uint64
Ea []int8
Fa []int16
Ga []int32
Ha []int64
Ia []float32
Ja []float64
Ma []byte
Na []rune
Oa []int
Pa []uint
Qa []string
Ra []bool
Aap []*uint8
Bap []*uint16
Cap []*uint32
Dap []*uint64
Eap []*int8
Fap []*int16
Gap []*int32
Hap []*int64
Iap []*float32
Jap []*float64
Map []*byte
Nap []*rune
Oap []*int
Pap []*uint
Qap []*string
Rap []*bool
}
PtStr *struct {
X int
}
InceptionStr struct {
Y []struct {
X *int
}
}
}
// XInlineStructs struct
type XInlineStructs struct {
B struct {
A uint8
B uint16
C uint32
D uint64
E int8
F int16
G int32
H int64
I float32
J float64
M byte
N rune
O int
P uint
Q string
R bool
S time.Time
Ap *uint8
Bp *uint16
Cp *uint32
Dp *uint64
Ep *int8
Fp *int16
Gp *int32
Hp *int64
IP *float32
Jp *float64
Mp *byte
Np *rune
Op *int
Pp *uint
Qp *string
Rp *bool
Sp *time.Time
Aa []uint8
Ba []uint16
Ca []uint32
Da []uint64
Ea []int8
Fa []int16
Ga []int32
Ha []int64
Ia []float32
Ja []float64
Ma []byte
Na []rune
Oa []int
Pa []uint
Qa []string
Ra []bool
Aap []*uint8
Bap []*uint16
Cap []*uint32
Dap []*uint64
Eap []*int8
Fap []*int16
Gap []*int32
Hap []*int64
Iap []*float32
Jap []*float64
Map []*byte
Nap []*rune
Oap []*int
Pap []*uint
Qap []*string
Rap []*bool
}
PtStr *struct {
X int
}
InceptionStr struct {
Y []struct {
X *int
}
}
}
// TDominantField struct
// ffjson: skip
type TDominantField struct {
X *int `json:"Name,omitempty"`
Y *int `json:"Name,omitempty"`
Other string
Name *int `json",omitempty"`
A *struct{ X int } `json:"Name,omitempty"`
}
// XDominantField struct
type XDominantField struct {
X *int `json:"Name,omitempty"`
Y *int `json:"Name,omitempty"`
Other string
Name *int `json",omitempty"`
A *struct{ X int } `json:"Name,omitempty"`
}
|