Skip to main content

Go language support for ninja-bear

Project description

ninja-bear-language-go

This ninja-bear plugin adds support for the Go programming language.

languages:
  # -------------------------------------------------------------------------
  # Property description for ninja-bear-language-go.
  #
  # language        (required): ninja-bear-language-go or go
  # package         (required): Specifies the config's package name.
  # file_naming     (optional): Specifies the file naming convention (snake |
  #                             screaming_snake | camel | pascal | kebap).
  #                             Defaults to the file-name without the extension.
  # property_naming (optional): Specifies the property naming convention (snake |
  #                             screaming_snake | camel | pascal | kebap).
  # type_naming     (optional): Specifies the naming convention for the generated
  #                             type (snake | screaming_snake | camel | pascal |
  #                             kebap). The default value is language specific.
  # indent          (optional): Specifies the amount of spaces before each
  #                             property. Defaults to 4.
  # transformers    (optional): Specifies a list of transformers (alias) to use.
  # distributors    (optional): Specifies a list of distributors (alias) to use.
  # ignore          (optional): If true, the section gets ignored.
  # -------------------------------------------------------------------------
  - language: ninja-bear-language-go
    package: testpackage
    file_naming: snake

properties:
  - type: bool
    name: myBoolean
    value: true

  - type: int
    name: myInteger
    value: 142

  - type: float
    name: myFloat
    value: 322f  # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.

  - type: float
    name: myCombinedFloat
    value: ${myInteger} * ${myFloat}  # Number and boolean combinations get evaluated during the dump process.

  - type: double
    name: myDouble
    value: 233.9

  - type: string
    name: myString
    value: Hello World
    hidden: true  # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.

  - type: regex
    name: myRegex
    value: Test Reg(E|e)x
    comment: Just another RegEx.  # Variables can be described using the comment property.

  - type: string
    name: mySubstitutedString
    value: Sometimes I just want to scream ${myString}!  # To use the value of another property, simply use its name with ${}. E.g., ${myString}.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ninja_bear_language_go-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

ninja_bear_language_go-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ninja_bear_language_go-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ninja_bear_language_go-0.1.0.tar.gz
Algorithm Hash digest
SHA256 735dc354dfd61d1ce45c4e76ffd2b5b55f2b3df0eae3eb4c94de3b62d9d2af47
MD5 fe77cba6b44469a94ccd8ee19f36a16a
BLAKE2b-256 9ea8ac3a3e1fddf489c6482f39688af2f9d668f0dd7deb0cdaade79954a4fe57

See more details on using hashes here.

File details

Details for the file ninja_bear_language_go-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ninja_bear_language_go-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0147315b36c71440d3a25f9eef1aac505087ce1a601745be9f75896425ee2a9a
MD5 95e90d7e6b39f6da4b80a21bdd69e81f
BLAKE2b-256 3aadef2acbed32723708aae86e6b705e9005ab4ff1a9e21c2a55c7df283ac588

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page