Skip to content

Commit 5523b36

Browse files
committed
Improve readme
1 parent d0b3f3f commit 5523b36

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,24 @@
44

55
This library provides constructs for Golang (Go 1.11 and 1.12 because of go modules) Lambda functions.
66

7-
### Golang Function
8-
Define a `GolangFunction`:
7+
### Installing
8+
In Typescript:
9+
10+
```sh
11+
npm i aws-lambda-golang --save
12+
# or using yarn
13+
yarn add aws-lambda-golang
14+
```
15+
16+
### Usage
17+
In Typescript:
918

1019
```ts
11-
new lambda.GolangFunction(this, 'my-handler');
20+
import * as golang from 'aws-lambda-golang';
21+
22+
...
23+
24+
new golang.GolangFunction(this, 'my-handler');
1225
```
1326

1427
By default, the construct will use the name of the defining file and the construct's id to look

0 commit comments

Comments
 (0)