Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f4147058
authored
2014-08-04 17:39:14 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
fix when delete the commentsRouter.go
2 parents
1fb24aca
289f050c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
cache/cache.go
parser.go
cache/cache.go
View file @
f414705
...
...
@@ -16,7 +16,7 @@ import (
// Cache interface contains all behaviors for cache adapter.
// usage:
// cache.Register("file",cache.NewFileCache()) // this operation is run in init method of file.go.
// c := cache.NewCache("file","{....}")
// c
,err
:= cache.NewCache("file","{....}")
// c.Put("key",value,3600)
// v := c.Get("key")
//
...
...
parser.go
View file @
f414705
...
...
@@ -158,6 +158,9 @@ func genRouterCode() {
}
func
compareFile
(
pkgRealpath
string
)
bool
{
if
!
utils
.
FileExists
(
path
.
Join
(
workPath
,
"routers"
,
"commentsRouter.go"
))
{
return
true
}
if
utils
.
FileExists
(
path
.
Join
(
workPath
,
lastupdateFilename
))
{
content
,
err
:=
ioutil
.
ReadFile
(
path
.
Join
(
workPath
,
lastupdateFilename
))
if
err
!=
nil
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment