From b91779462ac492d237ed89bd631ffa74aa8be03f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 23 Sep 2023 21:52:48 +0700 Subject: all: merge some functions into NewScript and ParseScript Previously, we have NewScriptForLocal, NewScriptForRemote, ParseScriptForLocal, and ParseScriptForRemote. Since script for local and remote actually the same and since we remove applying environment variables at 858c26d3d940 on local, we can merge them into NewScript and ParseScript. --- script_example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script_example_test.go') diff --git a/script_example_test.go b/script_example_test.go index def544a..e0156af 100644 --- a/script_example_test.go +++ b/script_example_test.go @@ -8,7 +8,7 @@ import ( "log" ) -func ExampleParseScriptForLocal() { +func ExampleParseScript() { var ( envContent = ` [section] @@ -33,7 +33,7 @@ end; log.Fatal(err) } - s, err = ParseScriptForLocal(ses, []byte(scriptContent)) + s, err = ParseScript(ses, []byte(scriptContent)) if err != nil { log.Fatal(err) } -- cgit v1.3-5-g9baa