Documentation ¶
Index ¶
- Constants
- func AddHost(content, host string) string
- func Float64Equal(f1, f2 float64, precision int) bool
- func FormatArticle(content string, element *colly.HTMLElement) string
- func Host(element *colly.HTMLElement) string
- func InvalidFloat(f float64) bool
- func ReplaceNBSPinHtml(s string) string
- func Round(f float64, precision int) float64
- func Sum(data string) int
Constants ¶
View Source
const ( Dce = "DCE" Shfe = "SHFE" Czce = "CZCE" Cffex = "CFFEX" Ine = "INE" Gfex = "GFEX" Sge = "SGE" Nymex = "NYMEX" Comex = "COMEX" Cbot = "CBOT" Cme = "CME" Cboe = "CBOE" UsIce = "US_ICE" EurIce = "EUR_ICE" Lme = "LME" Hkex = "HKEX" Sgx = "SGX" Tocom = "TOCOM" Bmd = "BMD" Apex = "APEX" Csi = "CSI" Asx = "ASX" Sfe = "SFE" Dgcx = "DGCX" Dme = "DME" IceSg = "ICE_SG" Tfex = "TFEX" Krx = "KRX" Jpx = "JPX" Xeurex = "XEUREX" Shse = "SHSE" Szse = "SZSE" Bjse = "BJSE" Neeq = "NEEQ" )
View Source
const ( Future = 1 Option = 2 )
Variables ¶
This section is empty.
Functions ¶
func Float64Equal ¶
Float64Equal 判断f1,f2是否相等,precision为小数点位数
func FormatArticle ¶
func ReplaceNBSPinHtml ¶
ReplaceNBSPinHtml 将html中转义后的non-breaking space符号,替换为" "字符串保存(管理端插件kindeditor对转以后\u00a0的格式化有bug)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.