1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: format long sum-types with a line for each type (#11461)

This commit is contained in:
Enzo
2021-09-10 19:56:55 +02:00
committed by GitHub
parent 5c4385a472
commit c8471528ce
8 changed files with 182 additions and 34 deletions

View File

@@ -4,8 +4,7 @@
module json2
// `Any` is a sum type that lists the possible types to be decoded and used.
pub type Any = Null | []Any | bool | f32 | f64 | i64 | int | map[string]Any | string |
u64
pub type Any = Null | []Any | bool | f32 | f64 | i64 | int | map[string]Any | string | u64
// `Null` struct is a simple representation of the `null` value in JSON.
pub struct Null {