示例#1
0
文件: sources.go 项目: npk/trailk
func NewSources(trailk *context.Context, ctx appengine.Context, key *key.Tool) *Sources {
	sources := &Sources{}

	sources.key = key.Kind("Source")
	sources.ctx = ctx
	sources.trailk = trailk

	return sources
}
示例#2
0
文件: summaries.go 项目: npk/trailk
func NewSummaries(trailk *context.Context, ctx appengine.Context, key *key.Tool) *Summaries {
	summaries := &Summaries{}

	summaries.key = key.Kind("Summaries")
	summaries.ctx = ctx
	summaries.trailk = trailk

	return summaries
}