Skip to content

cloud-native-c shows how to use AWS Go SDK from C using cgo

License

Notifications You must be signed in to change notification settings

lukaszbudnik/cloud-native-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud native C

This is a sample project which shows how to integrate C and Go.

It contains:

  • Go code which uploads and downloads objects to/from AWS S3
  • C code which calls Go code to handle upload/download logic
  • Makefile

Supported platforms (built automatically using GitHub Actions) are:

  • MacOS 10.15
  • Ubuntu 20.04
  • Windows 2019 with MinGW

See build.yml for details.

To build and run the project (assuming make, gcc and go are installed) simply execute:

$ make all
$ ./app app.c my-bucket-name

If you want to learn more about this project, c, go, and cgo please checkout out my article: Cloud native C.