[go-nuts] Re: directory name and module name not same, go tool pprof, list function faild

2020-08-03 Thread Lee Rick
se the combination of "-source_path" and "-trim_path" still not work my project dir tree macbookpro:tejia_analysis fredlee$ pwd /Users/fredlee/Documents/xxx/tool/tejia_analysis macbookpro:tejia_analysis fredlee$ tree util util ├── analysis.go ├── configure.go ├── cron.go ├──

[go-nuts] Re: how to merge different struct to one struct

2019-08-24 Thread Lee Rick
i read your code, and try to write my code, package main import ( "fmt" "reflect" ) type A struct{ Name string } type B struct{ Age int } type C struct{ Address string } func Merge(a interface{}, b interface{})( d interface{}) { aType := reflect.TypeOf(a) if aType.Kind() != reflect.Struct {

Re: [go-nuts] how to merge different struct to one struct

2019-08-24 Thread Lee Rick
k serdar写道: > > On Fri, Aug 23, 2019 at 11:11 PM Lee Rick > wrote: > > > > it's not my need, hope other methods > > What is your need? What are the types of the variables d1, d2, d3 in > your example? > > > > > 在 2019年8月24日星期六 UTC+8上午11:43:32,

Re: [go-nuts] how to merge different struct to one struct

2019-08-24 Thread Lee Rick
an Mercl写道: > > On Sat, Aug 24, 2019 at 5:25 AM Lee Rick > > wrote: > > > > i want to do > > type A struct{ Name string} > > type B struct{Age int} > > type C struct{Address string} > > > > a, b, c := A{}, B{},C{} > > have a function

Re: [go-nuts] how to merge different struct to one struct

2019-08-24 Thread Lee Rick
urtis Rader写道: > > On Fri, Aug 23, 2019 at 10:11 PM Lee Rick > wrote: > >> it's not my need, hope other methods >> > > Then you need to explain why that answer is not satisfactory and otherwise > better explain your requirements. In your hypothetical example the ob

Re: [go-nuts] how to merge different struct to one struct

2019-08-23 Thread Lee Rick
it's not my need, hope other methods 在 2019年8月24日星期六 UTC+8上午11:43:32,burak serdar写道: > > On Fri, Aug 23, 2019 at 9:25 PM Lee Rick > > wrote: > > > > i want to do > > type A struct{ Name string} > > type B struct{Age int} > > type C struct{Addre

[go-nuts] how to merge different struct to one struct

2019-08-23 Thread Lee Rick
i want to do type A struct{ Name string} type B struct{Age int} type C struct{Address string} a, b, c := A{}, B{},C{} have a function d1 := merge(a,b) //d1 like struct{Name string, Age int} d2 := merge(a,c) //d2 like struct{Name string, Address string} d3 := merge(b,c) //d3 like struct{Age

Re: [go-nuts] Re: golang for AI

2017-12-24 Thread Lee Rick
working in the symbolic AI field though (ontologies, > > constraint solving and that stuff), not machine learning. > > > > Le vendredi 22 décembre 2017 07:33:04 UTC+1, Lee Rick a écrit : > >> > >> hi, > >>Artificial intelligence is a big tren

[go-nuts] Re: golang for AI

2017-12-24 Thread Lee Rick
, so I would tend to > say yes. We're working in the symbolic AI field though (ontologies, > constraint solving and that stuff), not machine learning. > > Le vendredi 22 décembre 2017 07:33:04 UTC+1, Lee Rick a écrit : >> >> hi, >>Artificial intelligence is a b

[go-nuts] golang for AI

2017-12-21 Thread Lee Rick
hi, Artificial intelligence is a big trend, and i want to know whether or not to consider golang playing a role in artificial intelligence? Whether to consider developing some basic artificial intelligence package with support package, use just as python. -- You received this message

[go-nuts] forwarding http request and response

2017-12-20 Thread Lee Rick
hi, when http server receive a request A, create a new http request B with A, do B, get response respB, create a new http respA with respB how to do "create a new http request B with A" and " create a new http respA with respB" with io.copy method, and reset url,params, hosts etc.

Re: [go-nuts] golang call c++ api by swig

2017-06-22 Thread Lee Rick
ywei/go-opencv/gocv: build output "/var/folders/34/z2z_vp1573g5014m8k7wys10gn/T/go-build392930293/github.com/lazywei/go-opencv/gocv/_obj/gocv.go" already exists and is not an object file macbookpro:gocv fredlee$ 在 2017年6月23日星期五 UTC+8上午10:03:06,Justin Israel写道: > > Wh

[go-nuts] golang call c++ api by swig

2017-06-22 Thread Lee Rick
hi,guys I wanna wrap opencv2.4.x library to my project by swig, how to do it? anyone can give me a demo ? hope to reply. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

[go-nuts] Re: Which Go client for ElasticSearch?

2017-06-02 Thread Lee Rick
i choose https://github.com/olivere/elastic, it works fine. 在 2015年11月5日星期四 UTC+8上午8:21:29,Peter Kleiweg写道: > > The website of ElasticSearch lists three Go clients: > > https://github.com/mattbaird/elastigo > > https://github.com/belogik/goes > > https://github.com/olivere/elastic > > Does