mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
30 lines
559 B
Go
30 lines
559 B
Go
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/go-kratos/kratos/pkg/cache/memcache"{{end}}
|
|
{{if .EnableBatch }}"github.com/go-kratos/kratos/pkg/sync/errgroup"{{end}}
|
|
"github.com/go-kratos/kratos/pkg/log"
|
|
{{.ImportPackage}}
|
|
)
|
|
|
|
var _ _mc
|
|
`
|