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
package cacheutils | |
import ( | |
"sync" | |
"time" | |
) | |
const FUTURETIMEOUT = 5 * time.Second | |
type Future interface { |
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
// used for parsing slice from flag input string | |
// read flag string like "a, b, c" and output [a, b, c] | |
package main | |
import ( | |
"fmt" | |
"strings" | |
"flag" | |
) |
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
# -*- encoding= utf-8 | |
“”“ | |
“”” | |
import os | |
import sys | |
import re | |
import shutil | |
import time | |
from collections import defaultdict |