Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Date = new Proxy(Date, { | |
construct: (target: DateConstructor, args: any) => { | |
if (args.length === 0) { | |
return new target(2019, 11, 31, 18); | |
} | |
return new target( | |
...(args as [number, number, number, number, number, number, number]), | |
); | |
}, | |
}); |
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
/** | |
* Demo Gist GitHub with Go | |
* | |
* Author: Nam Vo Hoai <vhnam2504@gmail.com> | |
*/ | |
package main | |
import "fmt" | |
// Main function |