GithubHelp home page GithubHelp logo

isabella232 / temporal-aws-sdk-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from temporalio/temporal-aws-sdk-generator

0.0 0.0 0.0 3.89 MB

AWS SDK Bindings Generator

License: MIT License

Go 100.00%

temporal-aws-sdk-generator's Introduction

Temporal AWS SDK Generator

โš ๏ธ This code is an experiment: Absolutely no guarantee of backwards compatibility

This repository contains generator that generates code from template files passing to them a list of AWS Service definitions parsed from AWS Go SDK.

Installation

go get go.temporal.io/aws-sdk-generator 

Usage

aws-sdk-generator --template-dir <dir> --output-dir <dir>

Options

  • template-dir directory with template files. Only files with .tmpl extension are processed. Required.
  • output-dir base directory for generated files. Required.
  • service name of AWS service to generate code for. Optional. Default is all the services.

Template File Format

Templates must be in Go template format. The data structure passed to the templates is AWSSDKDefinition. A template file must call SetFileName function at the beginning to specify the output file name. It is allowed to call SetFileName multiple times to generate multiple files from the same template.

Template Functions

The following functions are available inside templates:

  • SetFileName(fileName string) sets output file name. It can contain directories. So "foo/bar/baz.go" is a valid name.
  • ToUpper(s string) string maps all string letters to upper case
  • ToLower(s string) string maps all string letters to lower case
  • HasPrefix(s, previx string) bool returns true if string has prefix
  • CapitalizeFirstLetter(s string) string capitalizes the first letter of the string
  • IsNil(value) boolean returns if the value is nil
  • IsDuplicate(collection, value string) bool used to deduplicate values

temporal-aws-sdk-generator's People

Contributors

mfateev avatar sagikazarmark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.