Coder Social home page Coder Social logo

auxo's People

Contributors

carolove avatar cuigh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auxo's Issues

在jsd如何支持字段为type类型

eg:

type ReportStatus int

type DotCrawlInfo struct {
	ReportStatus     entity.ReportStatus `jsd:"report_status"`
	WebsiteStatus    entity.ReportStatus `jsd:"website_status"`
}

在jsd中反射出来的时候提示错误

infos = []*model.DotCrawlInfo{}
db := gsd.MustOpen(_TABLE_SQL_SITE_RECORD)
err = db.Select( _ColReportStatus, _ColWebsiteStatus).From(_Table).
	Where(filter).
	Page(PI.PageIndex, PI.PageSize).Fill(&infos)
if err != nil {
	fmt.Println("Error:", err.Error())
}
return

提示类型无法反射无法从tinyiint(4) -> type ReportStatus int

这种如何解决~~

实例化全局单例logger的时候会触发config系统初始化从而无法再次加载profile变量

package main

import (
	"fmt"

	"github.com/cuigh/auxo/app/flag"
	"github.com/cuigh/auxo/config"
	"github.com/cuigh/auxo/log"
	"github.com/cuigh/auxo/app"
)

var logxxx = log.Get("log")

func main() {
	app.Name = "test6"
	app.Version = "0.0.1"
	app.Desc = "golang"
	app.Action = func(ctx *app.Context) {
		fmt.Println("web.mode is", config.GetString("web.mode"))
	}
	app.Flags.Register(flag.All)

	app.Start()
}

##3#################################
step:
chendan@chendan-TM1604:~/lesson6$ ./lesson6
___ __ __ ___ ___ ______
/ \ | | | | \ \ / / / __
/ ^ \ | | | | \ V / | | | |
/ /\ \ | | | | > < | | | |
/ _____ \ | '--' | / . \ | '--' |
/__/ _
\ _/ // __\ ___/ VERSION 0.6.4

web.mode is dev@dev

step:
chendan@chendan-TM1604:~/lesson6$ ./lesson6 -p prd
___ __ __ ___ ___ ______
/ \ | | | | \ \ / / / __
/ ^ \ | | | | \ V / | | | |
/ /\ \ | | | | > < | | | |
/ _____ \ | '--' | / . \ | '--' |
/__/ _
\ _/ // __\ ___/ VERSION 0.6.4

web.mode is dev@dev

EQ should be t

func (c *SimpleCriteriaSet) add(col interface{}, t int, val interface{}) *SimpleCriteriaSet {

func (c *SimpleCriteriaSet) add(col interface{}, t int, val interface{}) *SimpleCriteriaSet {
c.Items = append(c.Items, &OneColumnCriteria{
Column: c.toColumn(col),
Type: t,
Value: val,
})
return c
}

codahale/hdrhistogram repo url has been transferred under the github HdrHstogram umbrella

Problem

The codahale/hdrhistogram repo has been transferred under the github HdrHstogram umbrella with the help from the original author in Sept 2020 (new repo url https://github.com/HdrHistogram/hdrhistogram-go). The main reasons are to group all implementations under the same roof and to provide more active contribution from the community as the original repository was archived several years ago.

The dependency URL should be modified to point to the new repository URL. The tag "v0.9.0" was applied at the point of transfer and will reflect the exact code that was frozen in the original repository.

If you are using Go modules, you can update to the exact point of transfer using the @v0.9.0 tag in your go get command.

go mod edit -replace github.com/codahale/hdrhistogram=github.com/HdrHistogram/[email protected]

Performance Improvements

From the point of transfer, up until now (mon 16 aug 2021), we've released 3 versions that aim support the standard HdrHistogram serialization/exposition formats, and deeply improve READ performance.
We recommend to update to the latest version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.