Skip to content

Commit 4e27186

Browse files
committed
#### Version 1.4.8
* 调整:ItemContext更名为ItemMap,新增ConcurrenceMap、ReadonlyMap接口 * 调整:Dotweb.AppContext变更为Dotweb.Items * 调整:HttpContext.AppContext变更为HttpContext.AppItems * 调整:HttpContext.AppSetConfig变更为HttpContext.ConfigSet * 调整:config.AppSet变更为config.ConfigSet * 新增: config.ParseConfigSetXML\ParseConfigSetJSON\ParseConfigSetYaml,用于解析常规Key\Value格式的配置文件 * 新增:config.Config.IncludeConfigSet,用于向config.ConfigSet中导入Key\Value格式的配置文件,通过HttpContext.ConfigSet获取相关设置信息 * ParseConfigSetXML:支持xml格式文件解析,返回core.ConcurrenceMap * ParseConfigSetJSON:支持json格式文件解析,返回core.ConcurrenceMap * ParseConfigSetYaml:支持yaml格式文件解析,返回core.ConcurrenceMap * 具体配置文件格式可参考example/configset * 新增示例代码 example/configset * 2018-01-24 22:00
1 parent 65fb6a6 commit 4e27186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/config/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func Index(ctx dotweb.Context) error {
4949

5050
func GetAppSet(ctx dotweb.Context) error {
5151
key := ctx.QueryString("key")
52-
return ctx.WriteString(ctx.Request().Url(), " => key = ", ctx.AppSetConfig().GetString(key))
52+
return ctx.WriteString(ctx.Request().Url(), " => key = ", ctx.ConfigSet().GetString(key))
5353
}
5454

5555
func DefaultPanic(ctx dotweb.Context) error {

0 commit comments

Comments
 (0)