Skip to content

Commit

Permalink
v2: Fix kubernetes#171, map int8 to int8, uint8 to uint8 instead of byte
Browse files Browse the repository at this point in the history
  • Loading branch information
longit644 committed Mar 3, 2024
1 parent d07ed6e commit 6246c39
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions v2/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ var (
Name: Name{Name: "int16"},
Kind: Builtin,
}
Int8 = &Type{
Name: Name{Name: "int8"},
Kind: Builtin,
}
Int = &Type{
Name: Name{Name: "int"},
Kind: Builtin,
Expand All @@ -498,6 +502,10 @@ var (
Name: Name{Name: "uint16"},
Kind: Builtin,
}
Uint8 = &Type{
Name: Name{Name: "uint8"},
Kind: Builtin,
}
Uint = &Type{
Name: Name{Name: "uint"},
Kind: Builtin,
Expand Down Expand Up @@ -535,12 +543,12 @@ var (
"int64": Int64,
"int32": Int32,
"int16": Int16,
"int8": Byte,
"int8": Int8,
"uint": Uint,
"uint64": Uint64,
"uint32": Uint32,
"uint16": Uint16,
"uint8": Byte,
"uint8": Uint8,
"uintptr": Uintptr,
"byte": Byte,
"float": Float,
Expand Down

0 comments on commit 6246c39

Please sign in to comment.