Chilkat Go Language Package

for Windows, Linux, Alpine Linux, MAC OS X, Solaris

* For Raspberry Pi 2/3, use Linux armhf/aarch64 downloads.

1) Download chilkat_go.zip to $GOPATH/src and unzip

Creates 3 directories under $GOPATH/src:

  • chilkat: The "chilkat" package. Contains .go source files, one per Chilkat class.
  • chilkat_example1: Simple example program making use of the "chilkat" package.
  • chilkat_example2: Example program demonstrating async methods and event callbacks.

Note: If $GOPATH is unset, then GOPATH defaults to a subdirectory named "go" in the user's home directory.

v9.5.0.93 20-Nov-2022sha256: 4199cbd90dcfefe795150aad672b14d39b06857b515730eea451dd8f52ba64a8
chilkat_go.zip

 

2) Download One of the Native "C" Chilkat Go Libs

Choose the native "C" Chilkat library that matches your operating system, architecture, etc.
(The "libchilkatext-9.5.0.a" is contained in the native "C" download.)

If on Windows, see How to Choose the Native "C" Chilkat Go Library on Windows

Download and extract to a directory of your choosing, such as $HOME/go_chilkat_c/

See Native "C" Downloads Below...

3) Set the CGO_LDFLAGS Environment Variable

Find the directory where the libchilkatext-9.5.0.a is located. This will be the directory for the -L option.
For example, -L$HOME/go_chilkat_c/linux-x64-gcc

On non-Windows systems, set the CGO_LDFLAGS to "-L$HOME/go_chilkat_c/linux-x64-gcc -lchilkatext-9.5.0 -lresolv -lpthread -ldl -lstdc++".

On Windows systems, use "-lws2_32". For example, CGO_LDFLAGS might be set to "-LC:/go_chilkat_c/x86_64-10.0.0-posix-seh -lchilkatExt-9.5.0 -lws2_32 -lstdc++".

On Mac OS X systems, set CGO_LDFLAGS
to "-L$HOME/go_chilkat_c/macosx-x86_64-clang -lchilkatext_x86_64 -lpthread -lresolv -ldl -lstdc++"
or "-L$HOME/go_chilkat_c/macosx-i386-clang -lchilkatext_i386 -lpthread -lresolv -ldl -lstdc++"

Note: Case sensitivity matters: The Windows lib is "chilkatExt", others are "chilkatext".

4) Build the "chilkat" package.

In $GOPATH/src/chilkat, run the following commands:

(if $GOPATH is unset, then in $HOME/go/src/chilkat)

go mod init chillkat
go build
go install

Note: go build takes some time, perhaps a minute or two.

5) Build and Run the Example Programs.

In $GOPATH/src/chilkat_example1, type go build. Then run chilkat_example1.

In $GOPATH/src/chilkat_example2, type go build. Then run chilkat_example2.

6) Finished

Also see: Getting Started with Chilkat Go on Ubuntu Linux

See Chilkat Go Reference Documentation and Chilkat Go Examples.

 


Static Linking on MinGW/Linux to Remove stdlibc++ Dependency

See Go Language Static Linking

Also see Statically Compiling Golang application with CGO_ENABLED


Go Language Debugging in Visual Studio Code with a Native "C" Lib

To debug a Go application that uses a native library, define "evn" in the launch.json file. For example:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

    //"showLog" : true,
    //"trace" :"verbose",
    //"logOutput":"rpc",

    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
             "env": {"CGO_LDFLAGS":"-LC:/go_chilkat_c/tdm-5.1.0-64 -lchilkatExt-9.5.0 -lws2_32 -lstdc++"},
            "args": []
        }
    ]
}

Native "C" Chilkat Go Libs

Windows · Linux · Alpine Linux · MAC OS X · Solaris



Linux Native "C" Chilkat Go Libs

v9.5.0.93 19-Nov-2022sha256: 827cf9923e1bddfda6714ddcbb7af3bcccb3a1f088f2befae7598c57245aef94
Linux x64 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 1a1a041d30837bbc979c198d22270a3baafc5b5cbe73fbda73494cc5e1c6b45b
Linux x86 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: bdf5d9ca7c0ed05a81835b4bea4e64a60f937d16e41cde96cbdd3af159bad996
Linux aarch64 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 2cb735a83dda5026055377d868993eec1c9131ba30207ad75402f583a77c83ff
Linux armhf External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: ef7a53166056cb33a0486e48620e4151a5fbdaa7813f4c0fb093c72db8315c09
Linux x64 External C Static Lib (clang)

v9.5.0.93 19-Nov-2022sha256: 155adf559eb54dbd3d3c813a92716c72d7e3b6ae4f845a435032234f9e62d668
Linux x86 External C Static Lib (clang)

v9.5.0.93 19-Nov-2022sha256: b76664af97f33bedfb747c3d564574569c8c41fb2a1d4fc68d1d21ad2366abef
Linux armhf External C Static Lib (clang)


Alpine Linux Native "C" Chilkat Go Libs

v9.5.0.93 19-Nov-2022sha256: fc4976cc783974bfeb229a4e99b922627a2298688907febfc97be1e8a0acc1d9
Alpine Linux x64 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 0df0512d36ee24bd12fe18faf15075d869af6a7ed3a827dc640a7fa849e47358
Alpine Linux x86 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 743dc2d876b4b2fb7f08664b4248b3305432d9e5b524fc3873c5ecae0e2f6934
Alpine Linux aarch64 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 9003877e12998635e1aacac22770d633bf60350c10256d933df54425680265a4
Alpine Linux armhf External C Static Lib (gcc)


MAC OS X Native "C" Chilkat Go Libs

v9.5.0.93 19-Nov-2022sha256: bd963156cafb1603d74e2f1390ed6bcc25e221932554960788e3af0af1f94988
MacOSX arm64 External C Static Lib (clang)

v9.5.0.93 19-Nov-2022sha256: 16cfa47c04fc0942b188987b59a27da60e5fa9dd09d64bcdef0022bcf3b8ef9d
MacOSX x86_64 External C Static Lib (clang)

v9.5.0.93 19-Nov-2022sha256: 700a7a8090ffd17980647c4dddad84760b52b3499e534be353bd66f782d29f32
MacOSX i386 External C Static Lib (clang)


Solaris Native "C" Chilkat Go Libs

v9.5.0.93 19-Nov-2022sha256: 29b3ac9cd5b13ad00ba607794c17c2802cfb73b33f02a5626495bc7a02330a9f
Solaris x64 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: 801d0ead23a81a79c16f77732d2d3fa15de062392f3f3f1688448b0a0e1c4833
Solaris x86 External C Static Lib (gcc)

v9.5.0.93 19-Nov-2022sha256: fdb95240748ad954f92b0bfa6c0b60dacb3b3ef37541a61b5c70574664cc381c
Solaris x64 External C Static Lib (solaris studio)

v9.5.0.93 19-Nov-2022sha256: 74c070713ac52013a551d6c453b53aab2b7400abd89b71bde86ccfbde5329e37
Solaris x86 External C Static Lib (solaris studio)

Windows Native "C" Chilkat Go Libs

See How to Choose the Native "C" Chilkat Go Library on Windows

v9.5.0.93 20-Nov-2022sha256: d9bc4d9fa39155ef17db317b874cb7e4510eb3af16ad2bb524ca216880b36861
MinGW-w64 10.*.* x86_64

v9.5.0.93 20-Nov-2022sha256: 56b1db729f9b02422c2e1aa901b97edd96445c727a8c2f50e1d101d10f16b990
MinGW-w64 10.*.* i686

v9.5.0.93 20-Nov-2022sha256: 0e675bac6494f884a1048b818b87706d0b91b40d0a5cfae36f0f793a8eebc0ac
MinGW-w64 9.*.* x86_64

v9.5.0.93 20-Nov-2022sha256: 5db95f7f84a1e3bde5a7a210d630a893ed0c30af11fdfa1938186492133c5699
MinGW-w64 9.*.* i686

v9.5.0.93 20-Nov-2022sha256: a00195563e25448529964b6e5f0dd6f63e7f5f2051c1248f530d43b0374f9254
MinGW-w64 8.*.* x86_64

v9.5.0.93 20-Nov-2022sha256: a7f71fc1ad278c84ae46b3d404e6d8b718bdc931af8c450ef842d30a5f48b933
MinGW-w64 8.*.* i686

v9.5.0.93 20-Nov-2022sha256: 4b4572adb284682993e1750f0b1a5c889fb86eb1c1627b01eb9a7576653a6dd7
MinGW-w64 7.*.* x86_64

v9.5.0.93 20-Nov-2022sha256: 71987bbd69037ac5947ec22bd4ba8ab06d3b7fc3e60e333ec1fbe78cdfe5a235
MinGW-w64 7.*.* i686

v9.5.0.93 20-Nov-2022sha256: 0f4858b759a41a3bc871f6c51000167742ab66464779821776f4b695f35b2312
MinGW-w64 6.*.* x86_64

v9.5.0.93 20-Nov-2022sha256: ac5e2ce129ee73fb3276dcc21bc54fcc18413c097be43896d01fdd5f48237383
MinGW-w64 6.*.* i686

v9.5.0.93 20-Nov-2022sha256: 92dd01149da20dc77a1c8bd1342c9f3f9c50a04e31655f0993770ed6585716fb
TDM-GCC 10.3.0 64-bit

v9.5.0.93 20-Nov-2022sha256: e56131b202df9293a6ffebee9af5c41d7ccfa842fb5be797ee7a53384ac04768
TDM-GCC 10.3.0 32-bit