31 lines
570 B
Go
31 lines
570 B
Go
package main
|
|
|
|
var _headerTemplate = `
|
|
// Code generated by $GOPATH/src/go-common/app/tool/cache/mc. DO NOT EDIT.
|
|
|
|
NEWLINE
|
|
/*
|
|
Package {{.PkgName}} is a generated mc cache package.
|
|
It is generated from:
|
|
ARGS
|
|
*/
|
|
NEWLINE
|
|
|
|
package {{.PkgName}}
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
{{if .UseStrConv}}"strconv"{{end}}
|
|
{{if .EnableBatch }}"sync"{{end}}
|
|
NEWLINE
|
|
"go-common/library/stat/prom"
|
|
{{if .UseMemcached }}"go-common/library/cache/memcache"{{end}}
|
|
{{if .EnableBatch }}"go-common/library/sync/errgroup"{{end}}
|
|
"go-common/library/log"
|
|
{{.ImportPackage}}
|
|
)
|
|
|
|
var _ _mc
|
|
`
|