See https://blog.golang.org/c-go-cgo for info about calling C code from Go
program.
However, I am not sure that the cgo supports vc. 64-bit mingw-gcc from
msys2 works fine.
Hello everyone,
> I'm a new guy in Golang.
> We create a static library with VS2010, and we want go can call the
> librar
It is a known issue, file server treats index.html differently:
https://github.com/golang/go/issues/9876
On Tuesday, 16 August 2016 10:03:21 UTC+2, Howard Guo wrote:
>
> Hello fellow gophers.
>
> I'm starting a very trivial file server in a directory where there are
> files called "index.html" a
There was some discussion about how to handle generated methods in stack
traces in #11432, in particular I brought it up in this
comment: https://github.com/golang/go/issues/11432#issuecomment-146269822.
The discussion eventually led to the addition of the new
runtime.CallersFrames API, but pro
I think the point was that, while ListenAndServe is easily broken out into
net.Listen and http.Serve calls, ListenAndServeTLS is a whole lot more
complicated. Unfortunately there is currently no way to duplicate its
functionality other than to copy the source code.
On Mon, Aug 15, 2016 at 7:04 PM
So should I report the go vet issue? I made a backup prior to deleting the
files. I am pretty sure I can reproduce the problem and get the error message.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop rec
We a phrase as catchy as "Pics or it didn't happen" for this. "Test or it's
not trustworthy"? Needs work.
On Tue, Aug 16, 2016 at 2:16 PM, Dave Cheney wrote:
> Until it's part of the ./all.bash test suite, it'll continue to break
> because it has never been proven to work.
>
> > On 17 Aug 2016,
Hi everyone!
I'd start from a little story. On 3rd March a Reddit user itsmontoya, a
friend of mine, besides an ex-coworker, challenged me to do Go bindings for
the Vulkan API that has been released officially that day. It was a fun
idea since vulkan.h is a big chunk of a typical header code an
Until it's part of the ./all.bash test suite, it'll continue to break because
it has never been proven to work.
> On 17 Aug 2016, at 05:13, Michael Hudson-Doyle
> wrote:
>
>> On 17 August 2016 at 08:31, Dave Cheney wrote:
>> Stripping go binaries is not tested and known to produce broken bina
On 17 August 2016 at 08:31, Dave Cheney wrote:
> Stripping go binaries is not tested and known to produce broken binaries.
Stripping should be fine, and any problems produced by it should be
reported as bugs. Please.
> I recommend not doing this until strip/upx/whatever are tested as part of the
Stripping go binaries is not tested and known to produce broken binaries. I
recommend not doing this until strip/upx/whatever are tested as part of the
unit tests which are run before each commit lands.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts"
Can you give some test data? Start from https://play.golang.org/p/fZM_vB2FFr
By the way, I'd make an EXACT translation of the PHP code first, then write
tests (it's easy with go!), for EVERY step of the verification, to check
when the deviation starts.
2016. augusztus 16., kedd 19:27:28 UTC+2 i
On Tuesday, August 16, 2016 at 12:19:13 PM UTC-5, Dave MacFarlane wrote:
>
> What do you mean "no actual text editors"? By my count of the
> importers that GoDoc knows about 3 out of 8 of the projects that are
> using it are text editor apps.
>
> - Dave
>
Go to exp/shiny/examples/textedit.
go
I just want to point out that after upgrading to Go 1.7, I experienced
problem with go vet command as stated in issue
https://github.com/golang/go/issues/15728 . I couldn't figure out which
packages need rebuilding so I deleted all the files under GOPATH/pkg and
everything works fine now.
I h
Any tips at all would be helpful, I'd prefer not having to run a docker
instance with C# alongside my Go app on appengine just to be able to sign
people in.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
On Tue, Aug 16, 2016 at 12:56 PM, wrote:
> No buttons (though they aren't hard to implement from a label), no radio
> boxes, no built-in scrollbars that I could find, no actual text editors, no
> lookups/drop-downs/choosers, no listboxes. And certainly nothing akin to a
> grid/spreadsheet control
I've been working with it lately. I got fairly far in writing a drop-in
visualizer for my algorithms, but I ran into a snag when I went to add
dynamically generated editing for parameter values. The widget.NewText(),
in spite of being used in an Example called TextEdit, does not appear to
actua
Hi everyone, passing by to announce the release of Jet v2.0.
Lot's of enhancements, documentation, tests, and new features.
Please take a look in https://github.com/CloudyKit/jet
Jet is stable and ready for production.
Feedback is welcome.
Regards
--
You received this message because yo
Great stuff. Have you looked at
golearn https://github.com/sjwhitworth/golearn ?
On Tuesday, August 16, 2016 at 6:08:33 PM UTC+2, Daniel Whitenack wrote:
>
> Hi Everyone,
>
> There are actually a lot of people doing data science with Go or just
> interested in the idea. We have been discussing
Hi Everyone,
There are actually a lot of people doing data science with Go or just
interested in the idea. We have been discussing this a good bit on the
#data-science channel of gophers slack, but it was suggested there that a
post here would help make more people aware of these discussion an
Hi all,
I'd like to announce the first release of a little Go package I wrote to
read/write PLY files: go-plyfile! You can find the source and some
installation/usage instructions on
GitHub: https://github.com/alexbaden/go-plyfile
go-plyfile is a Go wrapper for the PLY C Library (originally au
PSA: If anyone uses upx to shrink linux binaries, beware that it will now
produce a binary that segfaults immediately.
On Tuesday, August 16, 2016 at 7:50:22 AM UTC-4, bep wrote:
>
> Congrats! Good stuff!
>
> I wrote the benchmark below to compare two branches in Hugo, but ran a set
> after 1.7
The easiest (but somewhat unreliable) way I can think of to get an
idea of who's using it is to look at the importers on GoDoc:
https://godoc.org/golang.org/x/exp/shiny/screen?importers
I don't know what you consider "useful", but the small-ish list of
non-internal importers seems to suggest that
type checkfunc func() string
var templateFuncs = make(map[string]checkfunc)
var templateFuncsMu sync.RWMutex
func RegisterTemplateFunc(a, b string, f checkfunc) {
templateFuncsMu.Lock()
templateFuncs[a+"/"+b] = f
templateFuncsMu.Unlock()
}
func TemplateFunc(a, b string) checkfunc {
TL;DR cron works like this (see the man page):
https://github.com/robfig/cron/blob/v2/spec.go#L164
It means that the dow and dom restrictions are ORed, not ANDed together.
I'd say to your original problem, that choose one restriction (say, dow),
and restrict in the called function: https://play.
,
| It would be interesting to know what the potential speedup is. It
| should be easy enough to write a C program to measure that. But when
| writing such a program, remember that no real program will simply
| increment a concurrent counter. The question is not just how much
| speedup you
Congrats! Good stuff!
I wrote the benchmark below to compare two branches in Hugo, but ran a set
after 1.7 upgrade:
4 random but fairly big Hugo sites, each built 6 times, rendered to memory:
- go1.6.2 0.17-DEV 24.479727984s - All OK
- go1.6.2 0.17-MULTILINGUAL 26.49965009s - All OK
-
On Tue, Aug 16, 2016 at 1:29 PM Damian Gryski wrote:
> The match at [4 4] would be an empty match abutting a preceding match.
That's it. Thanks a lot.
(TIL a new word: abutting)
--
-j
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsu
Shiny looks OK for building desktop apps.
A tone built anything useful with it ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegr
On Tuesday, August 16, 2016 at 1:00:15 PM UTC+2, Jan Mercl wrote:
>
> This code (A)
>
> package main
>
> import (
> "fmt"
> "regexp"
> )
>
> func main() {
> fmt.Printf("%v",
> regexp.MustCompile(`a*
This code (A)
package main
import (
"fmt"
"regexp"
)
func main() {
fmt.Printf("%v",
regexp.MustCompile(`a*`).FindAllStringIndex(`baaab`, -1))
}
(https://play.golang.org/p/WeyStT0Gbn)
Produces
[[0 0
Hello all,
Great work go team, thanks!
We got a speedup with 1.7 v 1.6 using the SSA backend
Scott
Le mardi 16 août 2016 01:28:23 UTC+2, Chris Broadfoot a écrit :
>
> Hello gophers,
>
> We just released Go 1.7.
>
> You can read the announcement blog post here:
> https://blog.golang.org/go1.7
On Friday, August 12, 2016 at 1:49:25 AM UTC+5:30, Tamás Gulácsi wrote:
>
> You have to manage the name->function map. Use a Register function to hide
> it.
Can you please elaborate ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsub
Hi Gophers,
I have updated the list of GO interfaces for latest release, at
http://sweetohm.net/article/go-interfaces.en.html.
New interfaces in 1.7 are :
- Addr (in vendor/golang_org/x/net/route):
https://github.com/golang/go/blob/go1.7/src/vendor/golang_org/x/net/route/address.go#L12
- Context
Where does the 301 point?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.
Hello fellow gophers.
I'm starting a very trivial file server in a directory where there are
files called "index.html" and "LICENSE":
http.Handle("/", http.FileServer(http.Dir(".")))
It has no trouble serving file LICENSE, however, the web server always
responds with HTTP 301 when serving "ind
I tested but it is not working .
https://play.golang.org/p/vN1q7kNcRF
OUTPUT
C:\Users\vijay\Desktop>go run cron.go
EVERY ONE MINUTE
second monday of every month
3rd tuesday of every month
++
EVERY ONE MINUTE
On Thu, Aug 11, 201
36 matches
Mail list logo