mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
try to fix up formatting in README some more more
This commit is contained in:
parent
9b2356b559
commit
09557e4608
@ -43,8 +43,10 @@ controlling how the file is read:
|
|||||||
+ `{ first = { name = "word"} }` then it would be `{ first = "ONE" }`
|
+ `{ first = { name = "word"} }` then it would be `{ first = "ONE" }`
|
||||||
+ `{ word = { transform = string.lower }}` would give `{ word = "one" }`
|
+ `{ word = { transform = string.lower }}` would give `{ word = "one" }`
|
||||||
+ finally,
|
+ finally,
|
||||||
|
|
||||||
{ word = true
|
{ word = true
|
||||||
number = { transform = function(x) return tonumber(x) / 10 end }}
|
number = { transform = function(x) return tonumber(x) / 10 end }}
|
||||||
|
|
||||||
would give `{ word = "ONE", number = 1 }`
|
would give `{ word = "ONE", number = 1 }`
|
||||||
|
|
||||||
A column can have more than one name:
|
A column can have more than one name:
|
||||||
|
Loading…
Reference in New Issue
Block a user