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

all: attr for enum fields (+ json encode/decode) (#18163)

This commit is contained in:
Felipe Pena
2023-05-12 20:08:30 -03:00
committed by GitHub
parent 8482bc4626
commit 47761a42e9
9 changed files with 85 additions and 6 deletions

View File

@ -111,6 +111,7 @@ pub struct EnumData {
pub:
name string
value i64
attrs []string
}
// FieldData holds information about a field. Fields reside on structs.