I just want to create a struct with variable String (utf-8 text).
const Person = struct {
name: [_]u8,
};
Is it possible? Or I have to set maximum length of string (e.g. name: [255]u8;)? When I pass to compiler it says:
person.zig:5:12: error: unable to infer array size
name: [_]u8,
Anyway I miss native String type instead of having to handle with bytes. Is there any library for that?