Chilkat Go Language Package

for Windows, Linux, Alpine Linux, MAC OS X, Solaris, FreeBSD, and OpenBSD

* 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.

v9.5.0.84 30-Sep-2020sha256: ed8ae14349468a6dba5c4b95b4833da18af78f702dd7271aef5424187f648ee8
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 -lstdc++".

On Windows systems, use "-lws2_32". For example, CGO_LDFLAGS might be set to "-LC:/go_chilkat_c/tdm-5.1.0-64 -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 -lstdc++"
or "-L$HOME/go_chilkat_c/macosx-i386-clang -lchilkatext_i386 -lpthread -lresolv -lstdc++"

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

4) Build the "chilkat" package.

In $GOPATH/src/chilkat, type go build. Then type 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

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 · FreeBSD · OpenBSD



Linux Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: 475e40f67ab9ab380a573af2b81e3c81e91a5a1dd32f72aa75995b112f2dff7a
Linux x64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 1423feec42409ccb4686bec253613905ddd8f0f9e5ca8b375bef6863d0226cb4
Linux x86 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: ac5c979f940aa442679e1023b622a7e3b8eae5d7185823ac588235f4f1235685
Linux aarch64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: f0edb3801ab050f5809dd7eb4a82e75d43e7c94d4bcd7143d1cf2a55bddbc749
Linux armhf External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 75ac86f68a5b2e8a41cdb26febe1a99380f88a24b2d85dfa3bddd648474c7a49
Linux x64 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: e08a34519dc64e15dfd8dcf01f87afd3b282d949eaeaaf947790b996dacc8c0e
Linux x86 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: b51bcfa022371736300955cadaf1baba09a995973ba3ddbd4da7a5f805867c3d
Linux armhf External C Static Lib (clang)


Alpine Linux Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: e73f0ddaa2e7818f1dce92eb65d9ffb820087aac01261fee1160d03e475b60d4
Alpine Linux x64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 0db0f8b4429b0867b9a023e690c7651e301ae21ea46f3191823239743aec5b13
Alpine Linux x86 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: ab9d812cfaca03af025d0ea5c87eba325c76ec90a5d17d7d2ea7986f7a9fc215
Alpine Linux aarch64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 0dc06d0597eaff7cfb62be48c9dbb68137194eac84e81ec4077266cb9e7ca95e
Alpine Linux armhf External C Static Lib (gcc)


MAC OS X Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: 1940d483a6585fa2035d2acc78836e48b9f7446eb8f9e43be073340228b3d39e
MacOSX x86_64 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: 28954bf920a8757ff6a53f6f239126fcbbefdd2543f94ba7629dc0ded8dd3611
MacOSX i386 External C Static Lib (clang)


Solaris Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: 189162dee788a0e77460f8888ed9dd8a076fc8b31d172b7b200eb324d35f3097
Solaris x64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 192919b65e2a9c106b011a214c4f6a7f0c77c811e0c0eb4931fbd7799518aff7
Solaris x86 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: f40fab5173eaed0e116b37ae0c19b01a7d3abc9b12d9bb866303ab1b98012452
Solaris x64 External C Static Lib (solaris studio)

v9.5.0.84 30-Sep-2020sha256: f744abf70d8ccdc051d7fbae586d39f39b183d664a3a657cfa47992f137670b7
Solaris x86 External C Static Lib (solaris studio)


FreeBSD Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: 9b28e8b31743f973e25d0554dfe44949b564109f73cd08edc6fac3befb4ced47
FreeBSD x64 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: 5e780c8ef8ed3ef2dd61fb804276c3698e9dc37d62975f0553b2ef55f9537614
FreeBSD x86 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: 2e506f25283179d0baa352d01df0e60f851a3962a7d666dffec432f4f45be153
FreeBSD x64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: 2cf8bf779fa1967f84ec53b87ec28850167271d3cd918c211b96da18b13b8f45
FreeBSD x86 External C Static Lib (gcc)


OpenBSD Native "C" Chilkat Go Libs

v9.5.0.84 30-Sep-2020sha256: dffb99d86b1ebced60374f238ae02bcf1b7cd0be4c5d20384a8fc30c7fe2c3cb
OpenBSD x64 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: 488f3a3c37de488b141b5daf252ef7d4362a6434f62a58c605c3d57e9eeec55f
OpenBSD x86 External C Static Lib (clang)

v9.5.0.84 30-Sep-2020sha256: 22e49cf6d5c80bec9fe66d56dfbce6078b516197f5fe1c95ca5880801b3cd253
OpenBSD x64 External C Static Lib (gcc)

v9.5.0.84 30-Sep-2020sha256: b1509b22a58c265f3317f2dd4bbbdae4e1bb7e2303f13b803f0af8a25689d57d
OpenBSD x86 External C Static Lib (gcc)

Windows Native "C" Chilkat Go Libs

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

v9.5.0.84 30-Sep-2020sha256: e1c2fbcca5554bd9c01f8ccabb2ffc65d40c1b25ded936e4331359071251ac55
Windows 64-bit tdm-64-5.1.0 (dw2) C Static Lib

v9.5.0.84 30-Sep-2020sha256: 60fba0ac2704d15e42b93a8a9edb659efc844abdfcf98f447412370261fd109b
MinGW-w64 GCC-4.7.2 x86_64 C Static Lib

v9.5.0.84 30-Sep-2020sha256: 67564da412b9a9aec0dccf3b92e8a4b322fcaff4a09f73cd3035d9b398b3e2e3
MinGW-w64 GCC-8.1.0 x86_64-8.1.0-posix-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: 60658c75fefcff8b7928dc78aaeb411c174176052c884231dfa79df575a0c455
MinGW-w64 GCC-8.1.0 x86_64-8.1.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 61d02371c16f4e1aa29cbb816103ad9e266cbc349384930ee7f8b7c0e77ed4cb
MinGW-w64 GCC-8.1.0 x86_64-8.1.0-win32-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: 75f4205b5030db055b10a277b29fad865f2a818afc4b04870520069b6b0be09d
MinGW-w64 GCC-8.1.0 x86_64-8.1.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: ad8ca9fb5f6d4b6e66324d19f7516cfb1873693cd6e021168fb76e86fbc785d2
MinGW-w64 GCC-8.1.0 i686-8.1.0-posix-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: 2d40f9a43a7f78724655874ceeb726793013af48e307af1fc06c41c5a7f47b9c
MinGW-w64 GCC-8.1.0 i686-8.1.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 8edc9c097ab4d5560b0b4a90263862c06c1079f2aa21980be0b700a7680838f8
MinGW-w64 GCC-8.1.0 i686-8.1.0-win32-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: 6b063fb583ef47611c9106d90202708d473fe024a3c9aba3bb21b758ac4ce23c
MinGW-w64 GCC-8.1.0 i686-8.1.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 177c70be8a759e43fd8d0f859a9f3a2bdbcbc1c9fd78a37eb3cac5d0ff3535bf
MinGW-w64 GCC-7.3.0 x86_64-7.3.0-posix-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: ba1b29d03b804f3b87d2300244b935f47e82128a5dcd6c82131a39d2886f15a2
MinGW-w64 GCC-7.3.0 x86_64-7.3.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 2581a8aa8a18ad7b8f226eb5c0f60970b9dc9245a151d16198bd65d68889689c
MinGW-w64 GCC-7.3.0 x86_64-7.3.0-win32-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: 17829938b292ce60bdcfd2d3dc19d02972052c58d1b2fdd1694029db02ad1da1
MinGW-w64 GCC-7.3.0 x86_64-7.3.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 579a76a5e6e4acd2257937f8b81ac500e0e3e4ca435682d4d70c346f5ecceba9
MinGW-w64 GCC-7.3.0 i686-7.3.0-posix-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: 49ee2fadb3bf8dfd978786089975f2c2a4f197dacb7e80f7ee2304df94b84615
MinGW-w64 GCC-7.3.0 i686-7.3.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: c3bf6da982f73f9984b1652f2f3c7b269395b6ac6d62b03c9ed4a561806ab368
MinGW-w64 GCC-7.3.0 i686-7.3.0-win32-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: 1ddbf4197c5ab546b29a7d909e642646eb3eced24e8a12fc2eeedad250d4bc37
MinGW-w64 GCC-7.3.0 i686-7.3.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: f6491ca6b588840bd5f0e061fb2f3a0a8c43d17795dc95a99a0612df6abacd5f
MinGW-w64 GCC-6.4.0 x86_64-6.4.0-posix-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: a08ca691dc56fe131ce2d185cf3b49127ae8b1f96dfd4eeb093d5cf82f270f94
MinGW-w64 GCC-6.4.0 x86_64-6.4.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: d90c313cff826963a736483389b972cf455ecbc268cfc19c6131259b6c0cca94
MinGW-w64 GCC-6.4.0 x86_64-6.4.0-win32-seh C Static Lib

v9.5.0.84 30-Sep-2020sha256: 17638b772d6169b29611926c07cec23a9c8c82649e0b56cab4bf28d33b440b1e
MinGW-w64 GCC-6.4.0 x86_64-6.4.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 16e39c3c402962b73fa71f7051244480418a0ec2e3bed6cc6cefc1c732aaffe0
MinGW-w64 GCC-6.4.0 i686-6.4.0-posix-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: deee3e108ca5c716e46d2ea4f973e334966288829ee938609b0a45a30705d8fd
MinGW-w64 GCC-6.4.0 i686-6.4.0-posix-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: d696d60a0b98e9bbe1519927e360d1165f9ed628e59455e49a73569610bb2a84
MinGW-w64 GCC-6.4.0 i686-6.4.0-win32-dwarf C Static Lib

v9.5.0.84 30-Sep-2020sha256: d2ba3d578d1cdd611ed1f0fee8ba5176e73ea0b9267603fd3b02a85a401be6bc
MinGW-w64 GCC-6.4.0 i686-6.4.0-win32-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: e27e0621813612abbaef7b8a6575c82b8b503ec8ce57df0f0a2a3bcdfa6a3f73
MinGW 5.3.0 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: 766b773c6d64f17cb1c40750728e25283f93af94951e978e89e65646c4b90bc9
MinGW 4.9.2 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: 38c72884873264915bbcfa23bd82549e1e7c0fda7842618c18e9bb6e02bdf2d7
MinGW-w64 GCC-4.9.2 x86_64-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 185fc09dbf8df6a1f629b974b74184be35fa88527682eb3b7b1e14faeb190049
MinGW-w64 GCC-4.8.1 (rv5) 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: cfed5b695ea8ff38e74e47e90383ab59c472965c644ea02d54a9b40ffda4226f
MinGW-w64 GCC-4.8.1 (rv2) 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: 15e2d0945ec1a51afb3af5bbb5f303268619bcd8f76fe4ed8acdb99923601691
MinGW-w64 GCC-4.8.1 x86_64-sjlj C Static Lib

v9.5.0.84 30-Sep-2020sha256: 1abdc10fc161938e8672ef664c7e4e02ad36760aa0d7eec0f66ac14e76a0a664
MinGW-w64 GCC-4.7.2 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: 2c803002963b6bbe8d4e8cddccce2b9cbb753487248a69d0a99a5c79c181aac6
MinGW 4.6.3 32-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: 4926aaa4627934efdf21cd56e0367c7f848301974e1b704dd6ba93a85627351b
MinGW 4.6.3 64-bit C Static Lib

v9.5.0.84 30-Sep-2020sha256: e9664f2af1743f6ca70eb8f2b5e318a56199aa2a0da0ad0b11c8a9edfb2c9237
tdm-4.9.2-64 C Static Lib