Skip to content

Add file modification time#5

Open
sethwklein wants to merge 2 commits intochsc:masterfrom
sethwklein:modtime
Open

Add file modification time#5
sethwklein wants to merge 2 commits intochsc:masterfrom
sethwklein:modtime

Conversation

@sethwklein
Copy link

Adds flag -m which adds a variable, named like _Mod, containing the file
modification time as a time.Time.

I used this when embedding a file in a web server. http.ServeContent takes a modtime argument to enable If-Modified-Since.

Adds flag -m which adds a variable, named like _Mod, containing the file
modification time as a time.Time.
@sethwklein
Copy link
Author

Commit 2168974 actually fixes a bug, oops!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants