Comments (2)
Make sure you used the correct imports. It is required to import macaron using gopkg.in/macaron.v1
if you intend to use any of the middlewares provided. If you import using github.com/go-macaron/macaron
it will be a different package.
@unknwon did you consider supporting github imports with go-modules? It should actually make gopkg.in obsolete.
from macaron.
@ppacher Has given the cause and solution.
Thanks for the suggestion! But even start using Go modules, the import path will not be change in my opinion, because everywhere will have to change.
from macaron.
Related Issues (20)
- Automated testing with routes HOT 1
- 如果路由中不存在占位符的话,SetParams会导致panic HOT 1
- Cann't route when a placeholder contains underline. HOT 1
- 静态文件问题 HOT 1
- 想给 Static 增加一个 opt ,禁止 . 点开头的文件如:.htaccess HOT 7
- case-insensitive import collision: "github.com/unknwon/com" and "github.com/Unknwon/com" HOT 1
- Middleware exception HOT 3
- Invalid Etag format prevents its validation and correct usage.
- gopkg is not getting latest version HOT 1
- How do I get the latest version?
- vulnerability: open redirect in static handler HOT 6
- Infinite redirect with Prefix in StaticOptions HOT 2
- [Proposal] Contribute to a benchmark
- Go 1.15: conversion from int64 to string yields a string of one rune
- 能否增加logrus HOT 1
- 怎么使用context.handlers HOT 1
- can not get times[] By use QueryStrings from folow request
- Are there plans to increase microservice related and microservice governance capability related? HOT 1
- intel stack link in use cases it rotten
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macaron.