1234567891011121314151617181920212223242526272829303132333435 |
- package main
-
- /*
- #cgo amd64 386 CFLAGS: -DX86=1
- #cgo darwin,!arm,!arm64 LDFLAGS: -lpthread
- #cgo darwin,arm LDFLAGS: -framework CoreFoundation
- #cgo darwin,arm64 LDFLAGS: -framework CoreFoundation
- #cgo dragonfly LDFLAGS: -lpthread
- #cgo freebsd LDFLAGS: -lpthread
- #cgo android LDFLAGS: -llog
- #cgo !android,linux LDFLAGS: -lpthread
- #cgo netbsd LDFLAGS: -lpthread
- #cgo openbsd LDFLAGS: -lpthread
-
- #cgo CFLAGS: -Wall -Werror
-
- #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
-
- */
- import "C"
- import _ "runtime/cgo"
- import (
- _ "gdyb/routers"
- "gdyb/service"
- "github.com/astaxie/beego"
- )
-
- func init() {
- service.ConnectDB()
- }
-
- func main() {
- beego.Run()
- }
|