This example demonstrates how the default
field/property name somehow causes a problem when
passing data into an Elm application through a port.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (span) | |
import Html.Attributes exposing (property) | |
import Json.Encode exposing (string) | |
main = span [ property "innerHTML" <| string "x × y"] [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /usr/local/go/pkg/tool/darwin_amd64/cgo -debug-gcc=true -objdir $WORK/github.com/mattn/go-oci8/_obj/ -- -Qunused-arguments -I/usr/local/lib/instantclient_11_2/sdk/include -I $WORK/github.com/mattn/go-oci8/_obj/ oci8.go | |
$ gcc -E -dM -xc -m64 -Qunused-arguments -I/usr/local/lib/instantclient_11_2/sdk/include -I /github.com/mattn/go-oci8/_obj/ - <<EOF | |
typedef struct { char *p; int n; } _GoString_; | |
typedef struct { char *p; int n; int c; } _GoBytes_; | |
_GoString_ GoString(char *p); | |
_GoString_ GoStringN(char *p, int l); | |
_GoBytes_ GoBytes(void *p, int n); | |
char *CString(_GoString_); | |
#line 3 "oci8.go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# github.com/mattn/go-oci8 | |
# | |
mkdir -p $WORK/github.com/mattn/go-oci8/_obj/ | |
mkdir -p $WORK/github.com/mattn/ | |
cd /Users/fcy/go/src/github.com/mattn/go-oci8 | |
pkg-config --cflags oci8 | |
pkg-config --libs oci8 | |
/usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/github.com/mattn/go-oci8/_obj/ -- -I $WORK/github.com/mattn/go-oci8/_obj/ oci8.go |
NewerOlder