Skip to content

Creating Go SDK #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions generate-sdks
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

DIR=$(cd `dirname $0` && pwd)
SDKS=( dotnet java-v1 java-v2 node php python ruby )
SDKS=( dotnet go java-v1 java-v2 node php python ruby )
SHOW_HELP=0
TARGET_SDK=

Expand Down Expand Up @@ -54,7 +54,7 @@ Builds a given SDK into the sdks/[SDK] directory.
**WARNING** All files and directories present in the sdks/[SDK] directory will
be DELETED and REBUILT!

-t target SDK, "all", "dotnet", "java-v2", "java-v1", "node", "php", "python", "ruby"
-t target SDK, "all", "dotnet", "go", "java-v2", "java-v1", "node", "php", "python", "ruby"
-h display this help and exit
Example: generate-sdks -t php
EOF
Expand All @@ -69,6 +69,7 @@ function validate_sdk_choice()
if [[
"${SDK}" != "all" &&
"${SDK}" != "dotnet" &&
"${SDK}" != "go" &&
"${SDK}" != "java-v1" &&
"${SDK}" != "java-v2" &&
"${SDK}" != "node" &&
Expand Down Expand Up @@ -114,6 +115,8 @@ function clear_previous_build_files()
if [[ "${SDK}" == "dotnet" ]]; then
rm -rf "${SDK_DIR}/docs"
rm -rf "${SDK_DIR}/src/HelloSign"
elif [[ "${SDK}" == "go" ]]; then
echo "skipping"
elif [[ "${SDK}" == "java-v2" || "${SDK}" == "java-v1" ]]; then
rm -rf "${SDK_DIR}/docs"
rm -rf "${SDK_DIR}/src/main"
Expand Down Expand Up @@ -156,6 +159,8 @@ function copy_examples()

if [[ "${SDK}" == "dotnet" ]]; then
cp -r "${DIR}/examples/"*.cs "${SDK_DIR}/examples/"
elif [[ "${SDK}" == "go" ]]; then
echo "skipping"
elif [[ "${SDK}" == "java-v2" || "${SDK}" == "java-v1" ]]; then
cp -r "${DIR}/examples/"*.java "${SDK_DIR}/examples/"
elif [[ "${SDK}" == "node" ]]; then
Expand Down
Loading
Loading