Skip to content

Commit

Permalink
Newer go version use any instead of interface{}
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman committed Feb 11, 2025
1 parent f351748 commit 29dc737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ impl FieldType {
Self::UInt64 => "uint64".into(),
Self::Uri | Self::String => "string".into(),
Self::DateTime => "time.Time".into(),
Self::JsonObject => "map[string]interface{}".into(),
Self::JsonObject => "map[string]any".into(),
Self::Map { value_ty } => format!("map[string]{}", value_ty.to_go_typename()).into(),
Self::List(field_type) | Self::Set(field_type) => {
format!("[]{}", field_type.to_go_typename()).into()
Expand Down

0 comments on commit 29dc737

Please sign in to comment.