hola

package module
v0.0.0-...-6d204f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

example-jsii-srcmak-go

This example uses patch-package to patch jsii-srcmak to contain the wip Go support developed in this PR.

This repo contains a simple Go program and uses JSII to include TypeScript code in the Go project.

It serves as an example to be able to talk about how Go support might work in jsii-srcmak.

hello vs. hola

  • hello.ts is included without a go.mod file and needs no require in the root go.mod
  • hola.ts has a go.mod file and needs require & replace in the root go.mod.

If hola is used without require/replace, go build fails with the following error:

main.go:7:2: no required module provides package github.com/ansgarm/example-jsii-srcmak-go/generated/hola; to add it:
        go get github.com/ansgarm/example-jsii-srcmak-go/generated/hola

Steps to run it

yarn install
yarn build
go run main.go

Documentation

Overview

b221d9dbb083a7f33428d7c2a3c3198ae925614d70210e28716ccaa7cd4ddb79

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHola_Override

func NewHola_Override(h Hola)

Types

type Hola

type Hola interface {
	Hola() *string
}

func NewHola

func NewHola() Hola

Directories

Path Synopsis
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL