Commit 178df23
committed
refactor: rename module path to github.com/s4wave/goscript
Repo transferred to the s4wave GitHub org. Update the module path and all Go
imports, TypeScript tsconfig aliases, tooling config (renovate, goreleaser),
docs, and examples to github.com/s4wave/goscript.
Also carries in-flight gs runtime and compiler working-tree changes (gs/time,
gs/slices, gs/sort, pkg/errors stack, compiler lowering and semantic model)
and new test fixtures.
Signed-off-by: Christian Stewart <christian@aperture.us>1 parent a65522e commit 178df23
728 files changed
Lines changed: 1673 additions & 941 deletions
File tree
- .github
- cmd
- go_js_wasm_exec
- goscript-wasm
- goscript
- compiler
- gotest
- wasm
- docs/issues
- example
- app
- src
- trpc
- simple
- gs
- github.com/pkg/errors
- runtime
- slices
- sort
- sync
- time
- unsafe
- tests
- tests
- address_of_pointer_deref
- address_taken_param_struct
- addressed_struct_interface
- anonymous_struct_field_address
- anonymous_struct_slice
- anonymous_struct_zero_unsafe
- array_equality
- array_literal
- array_pointer_element_slice
- array_pointer_ops
- assign_op_asi_barrier
- assign_op
- async_basic
- async_call_in_return
- async_call_index_target
- async_callback_imported_function
- async_defer_statement
- async_func_lit_select
- async_func_lit_switch_await
- async_function_alias
- async_function_field
- async_function_type_assertion
- async_function_variable_assignment
- async_void_function_literal_call
- atomic_struct_field_init
- bare_block_statement
- basic_arithmetic
- binary_precedence
- bitwise_and_not_assignment
- blank_func_decl
- blank_parameters
- blank_struct_fields
- block_comments
- bodyless_async_callback
- bool_slice_zero
- boolean_logic
- buffer_value_field_error
- build_tags
- bytes
- call_async_returned_function
- call_imported_interface_param
- call_returned_function_async
- chan_type_assertion
- channel_basic
- channel_receive_both_blank
- class_declaration_order
- clear_slice
- closure_func_assignment
- comments_struct
- complex_constant_return
- composite_literal_assignment
- composite_literal_field_shadow
- constant_shift_64
- constant_switch_tag
- constants_iota
- constants
- copy_independence
- cross_file_address_var
- cross_file_const_init_order
- cross_file_function_result_type
- cross_file_method_descriptor
- cross_file_method_imports
- cross_file_method_owner
- cross_file_package_var_assignment
- cross_file_struct_typeinfo_zero
- cross_file_varref_struct_field
- cross_package_unexported_interface_field
- debug_marshal
- debug_simple
- defer_async_method
- defer_immediate_callee_eval
- defer_statement
- defined_external_struct_wrapper
- dep
- destructure_trailing_comma
- destructuring_assignment
- discarded_channel_receive
- embedded_interface_assertion
- embedded_interface_forwarding
- embedded_interface_null_assertion
- error_pointer
- expr_stmt_iife_asi
- filepath_walkfunc_call
- flag_bitwise_op
- float64
- for_init_exprstmt
- for_init_multi_assign
- for_init_value_ok
- for_loop_basic
- for_loop_condition_only
- for_loop_infinite
- for_loop_multi_assign_mismatch
- for_post_assign_stmt
- for_post_exprstmt
- for_post_incdec
- for_post_multi_assign
- for_range_channel_buffered
- for_range_channel
- for_range_index_use
- for_range_key_only
- for_range_no_vars
- for_range_value_only
- for_range
- forward_goto_statement
- func_lit_outer_function_tuple
- func_lit_pointer_receiver_named_value
- func_literal
- function_call_result_assignment
- function_call_variable_shadowing
- function_nil_zero_narrowing
- function_result_async_compatible
- function_returns_function
- function_short_decl_async_compatible
- function_signature_type
- function_slice_call
- function_type_assertion
- generic_async_wrapper
- generic_cache_pointer_callbacks
- generic_constrained_slice_clone
- generic_constructor_field_typeinfo
- generic_erased_struct_make
- generic_function_instantiation_value
- generic_index_assignment
- generic_numeric_slice_xor
- generic_receiver_type_param_method
- generic_string_constraint
- generics_basic
- generics_interface
- generics_leading_int
- generics
- go_type_assertion
- goroutines_anonymous
- goroutines_selector
- goroutines
- hex_escape_sequence
- if_statement
- if_type_assert
- implicit_type_imports
- import_alias_shadowed_by_local
- import_alias_type_assert_shadow
- import_inferred_external_type_func_lit
- import_interface
- import_named_multiple
- import_package_var_assign
- import_type_methods
- import_unexported_inferred_type
- imported_generic_function
- imported_integer_constants
- imported_interface_field
- index_expr_destructuring
- index_expr_type_assertion
- indirect_circular_deps
- init_cross_file_zero_var_reader
- inline_function_type_cast
- inline_interface_type_assertion
- interface_async_callback_param
- interface_async_method_call
- interface_call_result_imports
- dep1
- interface_comparable_key
- interface_copied_method_call
- interface_embedded_import_methods
- dep1
- interface_embedded_parent_async
- interface_embedding
- subpkg
- interface_method_comments
- interface_multi_param_return
- interface_override_async_method
- interface_pointer_assignment
- interface_slice_index_short_decl
- interface_subset_cast
- interface_subset_type_switch
- interface_to_interface_type_assertion
- interface_type_assertion
- interface_type_reference
- issue_118_goroutine_starvation
- issue_119_interface_nil_value
- issue_120_generic_zero_value
- iterator_simple
- json_debug
- json_encoder_debug
- json_marshal_basic
- json_numfield
- json_simple
- json_typefields_flow
- json_typefields
- json_value
- keyed_array_literal
- line_directive_same_package_alias
- linkname_alias
- linkname_zero_returns
- linkname
- local_struct_type_decl_func_lit
- local_struct_type_decl
- make_generic_type
- make_named_types
- make_selector_type
- make_slice_struct_zero
- make_slice
- map_assign_blank_both
- map_builtin_name_collision
- map_const_key
- map_index_type_shadow
- map_interface_key_pointer_value
- map_nil_reassign
- map_struct_key
- map_support
- map_type_assertion
- map_value_field_access_cross_file
- method_async_call
- method_async_dependency
- method_binding
- method_call_on_pointer_receiver
- method_call_on_pointer_via_value
- method_call_on_value_receiver
- method_call_on_value_via_pointer
- method_call_slice_type
- method_receiver_async_paren
- method_receiver_await_paren
- method_receiver_call_return
- method_receiver_paren_line
- method_receiver_reassign
- method_receiver_shadowing
- method_receiver_with_call_expr
- method_result_imports_cross_file
- dep1
- method_value_primitive
- missing_package_methods_issue
- missing_valueof_error
- multi_return_same_type
- multiple_init_functions
- multiple_return_values
- named_array_pointer_receiver_nullable
- named_array_value_receiver_pointer_call
- named_channel_zero_value_cross_file
- named_function_type_call
- named_nil_slice_interface_receiver
- named_result_defer_return
- named_result_func_literal
- named_results
- named_return_method
- named_return_multiple
- named_slice_full_slice_assignment
- named_slice_wrapper
- named_struct_async_method
- named_struct_underlying_methodset
- named_type_wrapper
- named_types_valueof
- nested_async_method_value
- nil_channel
- nil_pkg_pointer_dereference
- nil_pointer_receiver_field_method
- nil_slice_append_spread
- nil_slice_closure_append
- nullable_function_param_call
- octal_literals
- os_filemode_struct
- package_import_archive_zip_writer
- package_import_bytes
- package_import_context
- package_import_crypto_ed25519
- package_import_crypto_rand
- package_import_crypto_sha1
- package_import_crypto_sha256
- package_import_csync
- package_import_dot_qualified
- package_import_embedded_forwarder
- dep
- inner
- package_import_encoding_binary
- package_import_encoding_json
- package_import_errors_as_interface
- package_import_errors
- package_import_fmt
- package_import_go_parser
- package_import_go_scanner
- package_import_io_fs_readdir_varref
- package_import_io_fs_readlink
- package_import_io_fs
- package_import_io_readfull
- package_import_io
- package_import_maps_nil_keys
- package_import_maps
- package_import_math_bits
- package_import_named_struct_conversion
- package_import_net_http_get
- package_import_net_http_httptest
- package_import_net_http_parity
- package_import_net_http_response
- package_import_os
- package_import_path_filepath
- package_import_path
- package_import_pkg_errors
- package_import_protobuf_equalvt
- package_import_protobuf_json_time
- package_import_reflect_mapkeys
- package_import_reflect
- package_import_regexp
- package_import_reserved_alias
- package_import_runtime_debug
- package_import_runtime_policy
- package_import_runtime_readmemstats_varref
- package_import_runtime
- package_import_slices_max
- package_import_slices
- package_import_sort
- package_import_starpc_srpc
- package_import_stdlib_parity
- package_import_strconv
- package_import_strings
- package_import_sync_atomic
- package_import_sync
- package_import_syscall_js
- package_import_syscall
- package_import_testing_fstest
- package_import_time_in
- package_import_time
- package_import_top_level_call
- package_import_unicode_utf8
- package_import_unicode
- package_import_unique
- package_import
- package_tuple_blank_var
- package_var_async_method
- parallel_assign_pointer_temps
- path_error_constructor
- pointer_assignment_no_copy
- pointer_circular_ref
- pointer_composite_literal_assignment
- pointer_composite_literal_untyped
- pointer_deref_multiassign
- pointer_initialization
- pointer_range_loop
- pointer_struct_assign_clone
- pointers
- primitive_error_cross_file
- primitive_error_type
- private_field_access
- promise_return_type
- promise_type_name_shadow
- promoted_embedded_struct_interface
- promoted_external_embedded_method
- promoted_method_call
- promoted_pointer_fields
- protobuf_lite_ts
- range_const_reassign
- range_expr_evaluated_once
- range_func_async_method_value
- range_shadow_rhs
- range_shadow_struct_field
- range_value_pointer_receiver
- receiver_binding
- receiver_method
- receiver_variable
- recursive_type_definition
- redeclaration_assign_multi_rhs
- redeclaration_assign
- reflect_func_of
- reflect_implements
- reflect_make_func
- reflect_numfield
- reflect_slice_at
- reflect_struct_basic
- reflect_struct_field
- reflect_struct_of
- reflect_typefor
- replace_directive
- reserved_function_name
- reserved_identifier_arguments
- reserved_word_in
- reserved_words
- return_async_call
- rune_const_import
- rune_const_reference
- runtime_const_platform_compare
- runtime_trace_empty
- runtime_trace_multibatch
- runtime_trace_proof
- select_default_continue
- select_mixed_returns
- select_receive_on_closed_channel_no_default
- select_send_on_full_buffered_channel_with_default
- select_statement
- selective_exports
- selector_expr_lhs_multi_assign
- selector_expr_ok_variable
- shadowed_varref_pointer_receiver
- short_decl_shadow_tdz
- short_decl_type_assert_type_shadow
- short_decl_type_conversion_shadow
- signed_wide_compound_assign
- simple_deref_assignment
- simple_interface
- simple_pointer_assign
- simple
- slice_copy_overlap
- slice_nil
- slice_to_array_conversion
- slice_type_assertion
- slices_grow
- slices_sortfunc_nil
- slices_sortfunc
- slice
- star_compound_assign
- star_expr_destructuring
- strict_mode_identifiers
- string_conversion
- string_copy_to_array
- string_index_access
- string_index_array_access
- string_range_runes
- string_slice
- string_switch_narrow_compare
- string_type_assertion
- struct_embedding_bytes_buffer
- struct_embedding
- struct_equality
- struct_field_access
- struct_field_declaration_order
- struct_literal_interface
- struct_method_clone_collision
- struct_method_expression
- struct_new
- struct_pointer_interface_fields
- struct_pointer_marking
- struct_private_field_ptr
- struct_private_field
- struct_type_assertion
- struct_value_init_clone
- switch_case_scope
- switch_default_fallthrough
- switch_multi_case
- switch_statement
- sync_once_async_do
- testing_async_subtest
- time_format_ext
- tuple_call_forwarding
- tuple_interface_assignment
- tuple_reassignment_pointer_method_cycle
- tuple_return_interface
- type_alias_cross_file
- type_alias_interface_param_cross_file
- type_assertion_duplicate_vars
- type_conversion_interface_ptr_nil
- type_declaration_receiver
- type_method_primitive
- type_missing_imports
- type_separate_files
- type_switch_statement
- type_switch_varref_suffix
- typed_nil_pointer_conversion
- uint32_wrap_ops
- undefined_type_error
- unsafe_array_pointer_slice
- unsafe_bytes_string
- unsafe_pointer_address
- unsafe_pointer_erased_var
- unsafe_pointer_storage
- unsafe_slice_reassign
- unsafe_string_slice_header
- unsigned_conversion_comparison
- util_promise
- value_receiver_address
- value_type_copy_behavior
- var_init_method_call
- var_init_order
- variable_shadowing_scope
- variadic_function_call
- variadic_interface_method
- variadic_interface_param
- variadic_pointer_interface_param
- varref_assign
- varref_composite_lit
- varref_deref_set
- varref_deref_struct
- varref_pointers_deref
- varref_pointers_number
- varref_pointers
- varref_struct_init
- varref_struct
- varref
- wide_uint64_ops
- wrapper_slice_append
- wrapper_type_args
- website
- playground
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments