微博图片URL获取上传用户golang版

CODEpackage main import ( "flag" "fmt" "net/url" "regexp" ) var ( partern = regexp.MustCompile("[[:alnum:]]{32}") ) // * example url: https://wx1.sinaimg.cn/orj360/002S1Vdwgy1gudlaxizffj60j60j60tf02.jpg func main() { fla...

微博mid与字符串id互转golang实现

版本一package main import ( "fmt" "strconv" "strings" "math" ) const EMETA = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" //48-57 97-122 65-90 const META_LENGTH = 62 var DMETA = map[string]int{"0": 0, ...