package main
import (
"fmt"
"io"
"os"
"os/exec"
"strings"
"time"
"github.com/kr/pty"
)
func main() {
c := exec.Command("/bin/bash", "-l")
c.Env = append(os.Environ(), "TERM=xterm")
tty, _ := pty.Start(c)
s
Fixed memory location is a global variable.
This only applies to 386, not amd64.
This applies only to (SB) dereferences, not to any other (SP, FP, or
standard register).
The text doesn't really say it, but it applies to LEAL as well as loads and
stores.
On Saturday, March 30, 2019 at 2:40:28 PM
I haven't done much client side javascript, but I'm used to seeing 'class'
and 'onClick' as attributes on a div or button. Strange that no errors
were generated anywhere, but anyway, both tips work perfectly, Thanks!!
Peter
On Saturday, 30 March 2019 20:28:56 UTC+1, Rusco wrote:
>
> If you t
The official documentation on using the Go assembly [0] says this:
> When using the compiler and assembler's -dynlink or -shared modes, any
> load or store of a fixed memory location such as a global variable must
> be assumed to overwrite CX. Therefore, to be safe for use with these
> modes, asse
If you try out your code in Javascript you can spot your error, it would be
something like:
but.className = "somecssclass";
but.addEventListener("click", somefunction);
so for syscall/js (untested) something like:
var cb js.Callback cb = js.NewCallback(func(args []js.Value) {
fmt.Println("Cli
This is the behavior for GO111MODULE=on. What is strange that the behavior
is different from GO111MODULE=auto outside the GOPATH. I suggest to raise
GO issue for clarification.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
> But it would certainly be cool to have a solution that provides an
> Electron-like shell around a Vugu application. I'll make an issue for it so
> it's noted for later.
Yes! Exactly. Would be very interested in that.
> On Mar 30, 2019, at 12:16 AM, Brad wrote:
>
> Yeah, it's different.
I have a temporary directory, lets call them "~/tmp/sandbox/go/src", to
test Go behaviour here and there that sometimes I always forget.
This time I want to know how the interface{} type works. I create
directory "interface" then inside it I create "main.go" file.
When running it with "go run ."
So I create a html button, and try to set some attributes, some work, some
fail, is there a reason for this?
but := doc.Call("createElement", "button")
but.Set("id", bID) //works
but.Set("innerHTML", "Don't Panic") //works
but.Set("title", "mybuton") //works
but.Set("class",