-
-
Save waiteb3/53587e25a6794244bfd00de01c2f6f0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn main() { | |
const Row = struct { | |
age: i32, | |
name: []u8, | |
}; | |
var contents_from_file = "1,2,3"; // will ignore last colum for now or ERR | |
var row = parse_csv_line(Row, contents_from_file); | |
printf(row); // Row { age = 1, name = "2" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment