古老的榕树

常常想人生的意义是什么?随着年龄的增长,发现读了十几年的书,还不如没有机会接触文化教育的父辈们活的明白,茫茫宇宙中,人太不起眼了,不要把自己看得这么重,想什么就去做便是了,为自己活着,活一天就赚一天1...


想了解博客有关的技术细节,移步到 myblog 博客采用的技术方案


源码地址:https://github.com/panjunjie/myblog


作者最后一次登录:2019-09-04 22:36:19

12 条网友留言

1 楼: 八度 留言于 2016-01-03 18:49:44

博主,博客的源码开源吗?

2 楼: 龅牙驴 留言于 2016-01-03 21:47:12

引用"八度"的留言

博主,博客的源码开源吗?
等阵子会开源到 github,程序还在修改点东西!

3 楼: 老钱 留言于 2017-02-18 17:53:01

这段代码如何理解? 我知道这是在监测/admin目录的访问时检测是否已经登陆了。 是否可以不用negroni.New这个函数来实现? 而且我查看了negroni.New这个函数是不需要参数的。。看不懂,是不是版本不对 router.PathPrefix("/admin").Handler(negroni.New( middleware.NewCheckLogin(), negroni.Wrap(adminRoutes), ))

4 楼: 潘军杰 留言于 2017-02-18 18:05:56

引用"老钱"的留言

这段代码如何理解? 我知道这是在监测/admin目录的访问时检测是否已经登陆了。 是否可以不用negroni.New这个函数来实现? 而且我查看了negroni.New这个函数是不需要参数的。。看不懂,是不是版本不对 router.PathPrefix("/admin").Handler(negroni.New( middleware.NewCheckLogin(), negroni.Wrap(adminRoutes), ))
negroni 是采用中间件的方式做拦截器,middleware.NewCheckLogin() 就是一个拦截器,拦截 /admin/* 所有路径的 controller 函数,检查是否已经登录?其中 router.PathPrefix("/admin").Handler(negroni.New( middleware.NewCheckLogin(), negroni.Wrap(adminRoutes), )) 是 gorilla/mux 指定的使用方式。

5 楼: 潘军杰 留言于 2017-02-18 18:12:57

引用"老钱"的留言

这段代码如何理解? 我知道这是在监测/admin目录的访问时检测是否已经登陆了。 是否可以不用negroni.New这个函数来实现? 而且我查看了negroni.New这个函数是不需要参数的。。看不懂,是不是版本不对 router.PathPrefix("/admin").Handler(negroni.New( middleware.NewCheckLogin(), negroni.Wrap(adminRoutes), ))
router.PathPrefix("/static/").Handler(...) 传入一个 go http 原生 handler ,正好 negroni.New(...) 就是 handler,用着用着就好理解了。

6 楼: JosephMew 留言于 2019-09-03 11:23:44

Bounce rate. Network traffic to boost ranks and exposure. NEW! Now you can choose the Country you want the traffic to come from, as well. Supercharge Your SEO And Boost Your Alexa Ranking with 1 Million unique Visitors Traffic sent Within 1 Month. Available only Here. Cheapest Offer On the Internet And Exclusively Available on Monkey Digital Read More details about our great offer: https://monkeydigital.co/product/network-traffic-offer/ Thanks and regards Mike Monkey Digital monkeydigital.co@gmail.com

7 楼: Edwarddiogy 留言于 2019-09-12 04:28:08

WE ARE INTERESTED IN PARTNERSHIP WITH YOUR ESTIMINE COMPANY. KINDLY SEND US YOUR BUSINESS TERMS SO WE CAN PROCEED WITH OUR BUSINESS CONTRACT. WAITING FOR YOUR REPLY CONTACT E-MAIL: joyce@cercoon.com REGARD, JOYCE PAGE (sales Manager ) CARCOON STORAGE SYSTEMS INT Ltd. CONTACT E-MAIL: joyce@cercoon.com Address: Orchard Mill, 2 Orchard St S, Salford M6 6FL, UK

8 楼: Ronalddyday 留言于 2019-09-14 06:23:52

Profit +10% after 2 days The minimum amount for donation is 0.0025 BTC. Maximum donation amount is 10 BTC. Ref bonus 3 levels: 5%,3%,1% paying next day after donation https://quickchain.cc/

9 楼: David Gomez 留言于 2019-09-27 06:29:45

Dearest in mind, I would like to introduce myself for the first time. My name is Barrister David Gomez Gonzalez, the personal lawyer to my late client. Who worked as a private businessman in the international field. In 2012, my client succumbed to an unfortunate car accident. My client was single and childless. He left a fortune worth $12,500,000.00 Dollars in a bank in Spain. The bank sent me message that I have to introduce a beneficiary or the money in their bank will be confiscate. My purpose of contacting you is to make you the Next of Kin. My late client left no will, I as his personal lawyer, was commissioned by the Spanish Bank to search for relatives to whom the money left behind could be paid to. I have been looking for his relatives for the past 3 months continuously without success. Now I explain why I need your support, I have decided to make a citizen of the same country with my late client the Next of Kin. I hereby ask you if you will give me your consent to present you to the Spanish Bank as the next of kin to my deceased client. I would like to point out that you will receive 45% of the share of this money, 45% then I would be entitled to, 10% percent will be donated to charitable organizations. If you are interested, please contact me at my private contact details by Tel: 0034-604-284-281, Fax: 0034-911-881-353, Email: amucioabogadosl019@gmail.com I am waiting for your answer Best regards, Lawyer: - David Gomez Gonzalez

10 楼: Georgepaifs 留言于 2019-09-28 21:02:54

Hi! 5-wow.com We make available Sending your commercial offer through the Contact us form which can be found on the sites in the contact partition. Feedback forms are filled in by our program and the captcha is solved. The advantage of this method is that messages sent through feedback forms are whitelisted. This method improve the probability that your message will be read. Our database contains more than 35 million sites around the world to which we can send your message. The cost of one million messages 49 USD FREE TEST mailing of 50,000 messages to any country of your choice. This message is automatically generated to use our contacts for communication. Contact us. Telegram - @FeedbackFormEU Skype FeedbackForm2019 Email - FeedbackForm@make-success.com

11 楼: Mikegus 留言于 2019-10-04 18:46:50

When you order 1000 backlinks with this service you get 1000 unique domains, Only receive 1 backlinks from each domain. All domains come with DA above 15-20 and with actual page high PA values. Simple yet very effective service to improve your linkbase and SEO metrics. Order this great service from here today: https://monkeydigital.co/product/unique-domains-backlinks/ Multiple offers available thanks and regards Mike monkeydigital.co@gmail.com

12 楼: JohnsonSep 留言于 2019-10-08 13:52:08

Dear Winner, Your company email has emerged on our Lottery prize winner database in the month of October 2019 USA online email sweepstakes (Lottery) exhibition programs. You are required to contact our approved paying bank officer/Head of Transfer Department stated below for your lotto prize fund release within 14 working days quoting your winning identification ref number for payment processing: USA-SWEP-10-57655-19. BERMUDA INVESTMENT BANK UK. Email: transferdept@bermudainvestmentbk.co.uk Contact Mr. Steven Albert. Tel:44 7341 029954? ?Tel:44 7459 299240? Congratulations once again while we look Forward to processing your winning prize to you . Yours truly , Mr. Johnson Larry Head , admin dept . Private Email: johnson.larry38716@yahoo.com Tel: +17014842612
称呼*
邮箱* 回复用途!
留言*
验证码*
验证码 看不清换另一张
 

关于作者

About Me

忘却理想,只为洒脱地活着!

文章数(90)

评论数(32)

访问数(180779)