You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/tool/kratos-gen-mc/header_template.go

30 lines
556 B

package main
var _headerTemplate = `
// Code generated by kratos tool genmc. 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
{{if .UseMemcached }}"github.com/bilibili/kratos/pkg/cache/memcache"{{end}}
{{if .EnableBatch }}"github.com/bilibili/kratos/pkg/sync/errgroup"{{end}}
"github.com/bilibili/kratos/pkg/log"
{{.ImportPackage}}
)
5 years ago
var _ _mc
`