# Example - Hello, World!

The simpliest example of running Go code on the AWS Lambda platform.

## Usage

### Build & Package 

#### With Docker

```sh
make dbuild
# output: handler.so

make dpack
# output: handler.zip
```

#### Without Docker

```sh
make build
# output: handler.so

make pack
# output: handler.zip
```

### Deploy

![Deploy your Lambda function on AWS][eawsy-config-img]

  [eawsy-config-img]: ../../_asset/screenshot_config.png 

# Example - Hello, World!

The simpliest example of running Go code on the AWS Lambda platform.

## Usage

### Build & Package 

#### With Docker (only option for OSX users)

```sh
make dbuild
# output: handler.so

make dpack
# output: handler.zip
```

#### Without Docker

```sh
make build
# output: handler.so

make pack
# output: handler.zip
```

### Deploy

![Deploy your Lambda function on AWS][eawsy-config-img]

  [eawsy-config-img]: ../../_asset/screenshot_config.png 

Update building info for OSX users
Update building info for OSX users

As this project uses `cgo`, OSX users need cross compilation to target
AWS Lambda Linux OS. The only viable solution so far seems to be the use
of docker containers.

`make dbuild` launch a docker container with a Linux OS which in turn
uses the `build` target of the Makefile inside the container to make the
actual build.

CAT: #doc
SEE: #2
