This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "upper.io/db" | |
| _ "upper.io/db/mysql" | |
| ) | |
| var settings = db.Settings{ | |
| Host: "localhost", // MySQL server IP or name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE `blog`.`test` ( | |
| `firstname` VARCHAR(20) NOT NULL , | |
| `lastname` VARCHAR(20) NULL , | |
| PRIMARY KEY (`firstname`) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "os" | |
| "code.google.com/p/gorest" | |
| "net/http" | |
| "time" | |
| "log" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/go-sql-driver/mysql" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dizitart.logging; | |
| import org.vertx.java.core.logging.impl.LogDelegate; | |
| import org.apache.logging.log4j.LogManager; | |
| import org.apache.logging.log4j.Logger; | |
| /** | |
| * A {@link LogDelegate} which delegates to Apache Log4j 2.x | |
| * | |
| * @author <a href="anidotnet@gmail.com">anidotnet@gmail.com</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dizitart; | |
| import org.vertx.java.core.json.JsonObject; | |
| import org.vertx.java.platform.Container; | |
| /** | |
| * Created by Anindya Chatterjee on 4/6/14. | |
| */ | |
| public class ApplicationConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package routers | |
| import ( | |
| "github.com/astaxie/beego" | |
| "apidemo/controllers" | |
| ) | |
| func init() { | |
| ns := beego.NewNamespace("/v1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package routers | |
| import ( | |
| "github.com/astaxie/beego" | |
| "apidemo/controllers" | |
| ) | |
| func init() { | |
| beego.Include(&controllers.UserController{}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package routers | |
| import ( | |
| "github.com/astaxie/beego" | |
| "apidemo/controllers" | |
| ) | |
| func init() { | |
| beego.Router("/v1/user/", &controllers.UserController{}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.abstractclass; | |
| import com.lmax.disruptor.EventTranslatorOneArg; | |
| import com.lmax.disruptor.RingBuffer; | |
| import com.lmax.disruptor.dsl.Disruptor; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.abstractclass; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| /** | |
| * Demo App | |
| */ | |
| public class App { | |
| private static Logger logger = LoggerFactory.getLogger(App.class); |
OlderNewer