Commit Graph

18 Commits (c0dce90b3cda5af0354b940f9439599eb279a6c1)

Author SHA1 Message Date
mattn c0dce90b3c FOO=BAR= should be "FOO" = "BAR=" 2013-11-18 18:46:24 +09:00
John Barton (joho) 6e333bd708 add godotenv.Read() which returns a map rather than calling os.Setenv 2013-09-04 12:40:57 +10:00
John Barton (joho) d00d0f7ef4 Turns out there was an easier way to read the env file. 2013-08-02 13:40:38 +10:00
John Barton (joho) 42920bbe5d Write up something for "go doc" 2013-07-31 14:54:21 +10:00
John Barton (joho) 9ec71cc6c8 Make sure we don't overwrite existing ENV vars. 2013-07-31 14:25:10 +10:00
John Barton (joho) 9d9f6ccb57 Make Load() without args open .env by default 2013-07-31 13:51:59 +10:00
John Barton (joho) ac58adf673 Get the code running against all fixtures. 2013-07-31 13:39:59 +10:00
John Barton (joho) 9b4bbb98c3 Clear the env at the start of each integration test. 2013-07-31 12:57:44 +10:00
John Barton (joho) 9001b88250 Ignore comment lines and lines full o' whitespace. 2013-07-31 12:37:08 +10:00
John Barton (joho) 74ec3a085f Handle quoted hashes "properly"
Read: not prettily or robustly.
2013-07-31 12:24:03 +10:00
John Barton (joho) aa6e870b57 Red, green, rinse repeat. 2013-07-31 12:10:31 +10:00
John Barton (joho) 98b43188a1 World's most naive comment parser...
Really pushing this red/green/refactor thing a little bit too far.
2013-07-31 12:08:58 +10:00
John Barton (joho) a37b438d54 Start trying to do comments/quoting properly. 2013-07-31 11:48:10 +10:00
John Barton (joho) 37c8b8e487 export keyword parsing 2013-07-30 18:38:10 +10:00
John Barton (joho) 4a2748eb3c Yaml style bro. 2013-07-30 18:34:51 +10:00
John Barton (joho) b10c02f9b0 Move the red-green a little way down the existing parser specs. 2013-07-30 18:23:33 +10:00
John Barton (joho) 973cf53008 Get the basic tests green. 2013-07-30 17:44:28 +10:00
John Barton (joho) 78ba83b776 First failing tests extracted from dotenv 2013-07-30 11:46:52 +10:00