Documentation
¶
Index ¶
- Constants
- func ChangeSetting(filename string, s map[string]string) []string
- func ConfigRead(iobyte []byte) map[string]string
- func GetCookieStr(r *http.Request, str string) string
- func IsConfigSource(programpath string) bool
- func IsCookieStr(r *http.Request, str string) bool
- func OpenConfig(filename string) map[string]string
- func OutConfig(filename string, s []string)
- func SetTempCookie(k, v string, w http.ResponseWriter)
- func SettingMatch(m, s map[string]string) map[string]string
Constants ¶
View Source
const ( COMMENTS = byte(35) // 对应# WARP = byte(10) // 对应换行键 )
ASCII 码表
Variables ¶
This section is empty.
Functions ¶
func ChangeSetting ¶
修改配置,filename 配置文件名称 需要修改的配置键值对
func GetCookieStr ¶
获得一个cookie.Name的cookie.Value 如果不存在返回空字符串.
func SetTempCookie ¶
func SetTempCookie(k, v string, w http.ResponseWriter)
设置一个临时的Cookit. 浏览器关闭后失效.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.