Re: [go-nuts] /usr/local/go/pkg/tool/linux_arm/link: running gcc failed: exit status 1

2024-11-02 Thread Stephan Lukits
> On 1. Nov 2024, at 19:20, Ian Lance Taylor wrote: > > On Fri, Nov 1, 2024 at 11:08 AM Stephan Lukits > wrote: >> >> from my research I found it could be helpful to exectue gcc with the >> `--mfloat-abi=hard` option; but I couldn't figure how to in

[go-nuts] /usr/local/go/pkg/tool/linux_arm/link: running gcc failed: exit status 1

2024-11-01 Thread Stephan Lukits
from my research I found it could be helpful to exectue gcc with the `--mfloat-abi=hard` option; but I couldn't figure how to inject that option? ``` ~/go/src/hellogio $ go build . # example.con/rpi3/hellogio /usr/local/go/pkg/tool/linux_arm/link: running gcc failed: exit status 1 /usr/bin/gcc -m

Re: [go-nuts] Looked at using Go ... nil/SEGV really bothered me .. Go2 Proposal?

2022-03-26 Thread Stephan Lukits
Stephan Lukits > On 25 Mar 2022, at 20:41, 'Michael Toy' via golang-nuts > wrote: > > The discussion is quite informative https://m.youtube.com/watch?v=ynoY2xz-F8s -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] I'd like to write a CSS StyleSheet Parser but...

2021-01-04 Thread Stephan Lukits
> On 3 Jan 2021, at 9:15, atd...@gmail.com wrote: > > Hello, > > I am currently in need of a css stylesheet parser to retrieve the CSSOM as a > go datastructure. > (probably in a map[*selector* string]map[*cssproperty* string]interface{}) > > The existing Go libraries that can be found onli

Re: [go-nuts] How to clear current line in terminal

2020-11-15 Thread Stephan Lukits
On 9/19/20 10:45 AM, Alex Mills wrote: [...] this will clear the current line in the terminal, so I can achieve something like a status line, but I cannot figure out how to do this with Golang, anyone know? https://play.golang.org/p/B5ZShtSizEy -- You received this message because you are su

[go-nuts] Re: method resolution order

2020-09-16 Thread Stephan Lukits
Thank you for your effort! It's not so much about terminology but more about avoiding duplicate code. And a way to do that is abstraction and specialization (has not necessarly something to do with inheritance). So after your explanation I would then - factor everything from NotInS which can be

[go-nuts] method resolution order

2020-09-16 Thread Stephan Lukits
Assume a public interface I with two methods NotInS and M whereas NotInS is calling M. An implementation i of I which implements NotInS and M as well as a specialization s of i which only implements M. Finally a constructor whose return-type is I returns a pointer to an instance of s. Callin

Re: [go-nuts] writing to net.Conn tcp socket

2020-09-12 Thread Stephan Lukits
On 9/12/20 8:27 PM, Andy Hall wrote: Thanks Martin...I'll be sure to add a mutex lock and unlock either side of the map call...probably shouldn't have chosen a networked multi-player game as my first project but I sure am learning a lot !! It's a very fun language too. There is also *sync.Map*

Re: [go-nuts] database/sql doesn't return error for query-string-destination if NULL bug or feature

2020-09-11 Thread Stephan Lukits
On 9/12/20 8:25 AM, Tamás Gulácsi wrote: database/sql.DB is a pool. If you don't want to close it, SetMaxIdleConns(1), or better, use a db.Conn(). Thanks for the hint. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

Re: [go-nuts] database/sql doesn't return error for query-string-destination if NULL bug or feature

2020-09-11 Thread Stephan Lukits
On Friday, 11 September 2020 at 21:04:11 UTC+3 mar...@gmail.com wrote: > Which sqlite driver are you using? That sounds like a bug. > "github.com/mattn/go-sqlite3" > > On Fri, Sep 11, 2020 at 10:56 AM Stephan Lukits wrote: > >> I passed a string-type poi

[go-nuts] database/sql doesn't return error for query-string-destination if NULL bug or feature

2020-09-11 Thread Stephan Lukits
I passed a string-type pointer (as last destination) to a sql.DB.Query call which had a NULL value as field value. No error was returned and all other fields got the appropriate values but the connection was silently closed. I noticed because it was an in-memory (sqlite3) database which all of