├── .github ├── dependabot.yml └── workflows │ └── gop.yml ├── .gitignore ├── 100-Sequential-programming └── README.md ├── 101-Hello-world ├── hello-11.gop ├── hello-12.gop ├── hello-2.gop └── hello-3.gop ├── 102-Values └── values.gop ├── 103-Constants └── constants.gop ├── 104-Variables └── vars.gop ├── 105-Assignments ├── assign-1.gop └── assign-2.gop ├── 106-Types ├── types-2.gop └── types.gop ├── 107-Integers └── integers.gop ├── 108-Floating-Point-Numbers └── numbers.gop ├── 109-Complex-Numbers ├── complex-1.gop ├── complex-2.gop └── complex-3.gop ├── 110-Booleans ├── boolean-1.gop └── boolean-2.gop ├── 111-Strings └── strings.gop ├── 112-Rational-Numbers └── rational-1.gop ├── 113-If/Else └── if-else.gop ├── 113-Switch └── switch-1.gop ├── 114-For ├── for-0.gop ├── for-1.gop ├── for-2.gop ├── for-3.gop ├── for-4.gop ├── for-5.gop ├── for-6.gop └── for-7.gop ├── 116-Arrays ├── arrays1.gop ├── arrays2.gop └── arrays3.gop ├── 117-Slices ├── slices-01.gop ├── slices-02.gop ├── slices-03.gop ├── slices-04.gop ├── slices-05.gop ├── slices-06.gop ├── slices-07.gop ├── slices-08.gop ├── slices-09.gop ├── slices-10.gop ├── slices-11.gop └── slices-12.gop ├── 118-Maps ├── map-0.gop ├── map-1.gop └── map-2.gop ├── 119-Structs ├── struct-1.gop ├── struct-2.gop ├── struct-3.gop ├── struct-4.gop ├── struct-5.gop ├── struct-6.gop └── struct-7.gop ├── 120-Pointers ├── pointer-1.gop ├── pointer-2.gop ├── pointer-3.gop └── pointer-4.gop ├── 121-For-Each ├── for-each-1.gop ├── for-each-2.gop └── for-each-3.gop ├── 121-For-Range └── range.gop ├── 121-List-Comprehension └── listcompr.gop ├── 200-Structured programming └── README.md ├── 201-Functions └── funcs.gop ├── 202-Multiple-Return-Values └── multi-rets.gop ├── 203-Errors └── errors.gop ├── 204-Function Values └── func-values.gop ├── 205-Closures └── closures.gop ├── 205-Lambda-expressions ├── lambda-expressions-1.gop ├── lambda-expressions-2.gop └── lambda-expressions-3.gop ├── 206-Recursion └── recursion.gop ├── 207-Variadic-Parameters └── variadic.gop ├── 208-Defer ├── defer-1.gop └── defer-2.gop ├── 209-Exceptions ├── exceptions-1.gop └── exceptions-2.gop ├── 210-Methods ├── methods-1.gop └── methods-2.gop ├── 211-Methods-with-a-Pointer-Receiver └── ptr-methods-1.gop ├── 212-Composing-Types-by-Struct-Embedding ├── struct-emb-1.gop └── struct-emb-2.gop ├── 213-Method-Values-and-Expressions ├── method-values-1.gop ├── method-values-2.gop └── method-values-3.gop ├── 214-Encapsulation ├── encap-1.gop ├── encap-2.gop ├── encap-3.gop ├── encap-4.gop ├── encap-5.gop └── encap-6.gop ├── 215-Interfaces ├── interfaces-1.gop └── interfaces-2.gop ├── 216-Interface-Satisfaction ├── interface-satisfy-1.gop ├── interface-satisfy-2.gop ├── interface-satisfy-3.gop ├── interface-satisfy-4.gop ├── interface-satisfy-5.gop └── interface-satisfy-6.gop ├── 217-Interface-Values ├── interface-values-1.gop ├── interface-values-2.gop └── interface-values-3.gop ├── 218-The-error-Interface ├── error-1.gop ├── error-2.gop ├── error-3.gop └── error-4.gop ├── 219-Type-Assertions ├── type-assert-1.gop ├── type-assert-2.gop ├── type-assert-3.gop └── type-assert-4.gop ├── 220-Type-Switches └── type-switch.gop ├── LICENSE ├── README.md ├── _deep ├── Unix-Shebang │ └── shebang └── Using-goplus-in-Go │ └── foo │ ├── foo.gop │ ├── foo_test.gop │ └── footest_test.gop ├── _todo ├── 02-Var-and-operator │ └── var_and_op.gop ├── 03-Import-go-package │ └── import.gop ├── 04-Func │ └── func.gop ├── 05-Closure │ └── closure.gop ├── 06-String-Map-Array-Slice │ └── datastruct.gop ├── 08-SliceLit │ └── slicelit.gop ├── 09-IfElse-SwitchCase │ └── flow.gop ├── 10-List-comprehension │ └── list_comprehens.gop ├── 11-Map-comprehension │ └── map_comprehens.gop ├── 12-Select-comprehension │ └── select.gop ├── 12-Select-comprehension2 │ └── findscore.gop ├── 13-Exists-comprehension │ └── exists.gop ├── 15-ErrWrap │ └── err_wrap.gop ├── 16-Fib │ └── fib.gop ├── 17-Fibtc │ └── fibtc.gop ├── 18-Rational │ └── rational.gop ├── 19-IncDec │ └── inc_dec.gop ├── 21-Break-continue-goto │ └── flow.gop ├── 22-For-loop │ └── for.gop ├── 23-Defer │ └── defer.gop ├── 24-Goroutine │ └── goroutine.gop ├── 25-Struct │ └── struct.gop ├── 26-Method │ └── method.gop ├── 27-Func-Set │ └── func.gop ├── 28-Chan │ └── chan.gop ├── 29-CompareToNil │ └── ref.gop ├── 30-Recover │ └── recover.gop ├── 31-Builtin-Typecast │ └── builtin_and_typecast.gop ├── 32-Import-gop-package │ └── import_gop_pkg.gop ├── 33-Interface │ └── shape.gop ├── 34-Type-assert │ └── type_assert.gop ├── 35-Chan-select │ └── select.gop ├── 36-Auto-Property │ └── autoprop.gop ├── 37-Cmdline │ └── cmdline.gop ├── 38-Overload-operator │ └── overload_op.gop ├── 39-Lambda-expression │ └── lambda.gop ├── 40-Deduce-struct-type │ └── deduce.gop ├── 41-UDT-RangeForEach │ └── udt_range.gop ├── 42-UDT-RangeIterator │ └── udt_range_iter.gop └── 43-RangeExpr │ └── rangeexpr.gop ├── dummy └── dummy.go ├── go.mod ├── go.sum ├── internal └── watch.go ├── main.go ├── public ├── 404.html ├── clipboard.min.js ├── clipboard.svg ├── favicon.svg ├── play.svg └── site.css └── templates ├── example.tmpl ├── footer.tmpl ├── header.tmpl └── index.tmpl /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/gop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/.github/workflows/gop.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /100-Sequential-programming/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /101-Hello-world/hello-11.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/101-Hello-world/hello-11.gop -------------------------------------------------------------------------------- /101-Hello-world/hello-12.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/101-Hello-world/hello-12.gop -------------------------------------------------------------------------------- /101-Hello-world/hello-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/101-Hello-world/hello-2.gop -------------------------------------------------------------------------------- /101-Hello-world/hello-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/101-Hello-world/hello-3.gop -------------------------------------------------------------------------------- /102-Values/values.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/102-Values/values.gop -------------------------------------------------------------------------------- /103-Constants/constants.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/103-Constants/constants.gop -------------------------------------------------------------------------------- /104-Variables/vars.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/104-Variables/vars.gop -------------------------------------------------------------------------------- /105-Assignments/assign-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/105-Assignments/assign-1.gop -------------------------------------------------------------------------------- /105-Assignments/assign-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/105-Assignments/assign-2.gop -------------------------------------------------------------------------------- /106-Types/types-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/106-Types/types-2.gop -------------------------------------------------------------------------------- /106-Types/types.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/106-Types/types.gop -------------------------------------------------------------------------------- /107-Integers/integers.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/107-Integers/integers.gop -------------------------------------------------------------------------------- /108-Floating-Point-Numbers/numbers.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/108-Floating-Point-Numbers/numbers.gop -------------------------------------------------------------------------------- /109-Complex-Numbers/complex-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/109-Complex-Numbers/complex-1.gop -------------------------------------------------------------------------------- /109-Complex-Numbers/complex-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/109-Complex-Numbers/complex-2.gop -------------------------------------------------------------------------------- /109-Complex-Numbers/complex-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/109-Complex-Numbers/complex-3.gop -------------------------------------------------------------------------------- /110-Booleans/boolean-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/110-Booleans/boolean-1.gop -------------------------------------------------------------------------------- /110-Booleans/boolean-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/110-Booleans/boolean-2.gop -------------------------------------------------------------------------------- /111-Strings/strings.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/111-Strings/strings.gop -------------------------------------------------------------------------------- /112-Rational-Numbers/rational-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/112-Rational-Numbers/rational-1.gop -------------------------------------------------------------------------------- /113-If/Else/if-else.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/113-If/Else/if-else.gop -------------------------------------------------------------------------------- /113-Switch/switch-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/113-Switch/switch-1.gop -------------------------------------------------------------------------------- /114-For/for-0.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-0.gop -------------------------------------------------------------------------------- /114-For/for-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-1.gop -------------------------------------------------------------------------------- /114-For/for-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-2.gop -------------------------------------------------------------------------------- /114-For/for-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-3.gop -------------------------------------------------------------------------------- /114-For/for-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-4.gop -------------------------------------------------------------------------------- /114-For/for-5.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-5.gop -------------------------------------------------------------------------------- /114-For/for-6.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-6.gop -------------------------------------------------------------------------------- /114-For/for-7.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/114-For/for-7.gop -------------------------------------------------------------------------------- /116-Arrays/arrays1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/116-Arrays/arrays1.gop -------------------------------------------------------------------------------- /116-Arrays/arrays2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/116-Arrays/arrays2.gop -------------------------------------------------------------------------------- /116-Arrays/arrays3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/116-Arrays/arrays3.gop -------------------------------------------------------------------------------- /117-Slices/slices-01.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-01.gop -------------------------------------------------------------------------------- /117-Slices/slices-02.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-02.gop -------------------------------------------------------------------------------- /117-Slices/slices-03.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-03.gop -------------------------------------------------------------------------------- /117-Slices/slices-04.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-04.gop -------------------------------------------------------------------------------- /117-Slices/slices-05.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-05.gop -------------------------------------------------------------------------------- /117-Slices/slices-06.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-06.gop -------------------------------------------------------------------------------- /117-Slices/slices-07.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-07.gop -------------------------------------------------------------------------------- /117-Slices/slices-08.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-08.gop -------------------------------------------------------------------------------- /117-Slices/slices-09.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-09.gop -------------------------------------------------------------------------------- /117-Slices/slices-10.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-10.gop -------------------------------------------------------------------------------- /117-Slices/slices-11.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-11.gop -------------------------------------------------------------------------------- /117-Slices/slices-12.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/117-Slices/slices-12.gop -------------------------------------------------------------------------------- /118-Maps/map-0.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/118-Maps/map-0.gop -------------------------------------------------------------------------------- /118-Maps/map-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/118-Maps/map-1.gop -------------------------------------------------------------------------------- /118-Maps/map-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/118-Maps/map-2.gop -------------------------------------------------------------------------------- /119-Structs/struct-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-1.gop -------------------------------------------------------------------------------- /119-Structs/struct-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-2.gop -------------------------------------------------------------------------------- /119-Structs/struct-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-3.gop -------------------------------------------------------------------------------- /119-Structs/struct-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-4.gop -------------------------------------------------------------------------------- /119-Structs/struct-5.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-5.gop -------------------------------------------------------------------------------- /119-Structs/struct-6.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-6.gop -------------------------------------------------------------------------------- /119-Structs/struct-7.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/119-Structs/struct-7.gop -------------------------------------------------------------------------------- /120-Pointers/pointer-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/120-Pointers/pointer-1.gop -------------------------------------------------------------------------------- /120-Pointers/pointer-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/120-Pointers/pointer-2.gop -------------------------------------------------------------------------------- /120-Pointers/pointer-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/120-Pointers/pointer-3.gop -------------------------------------------------------------------------------- /120-Pointers/pointer-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/120-Pointers/pointer-4.gop -------------------------------------------------------------------------------- /121-For-Each/for-each-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/121-For-Each/for-each-1.gop -------------------------------------------------------------------------------- /121-For-Each/for-each-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/121-For-Each/for-each-2.gop -------------------------------------------------------------------------------- /121-For-Each/for-each-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/121-For-Each/for-each-3.gop -------------------------------------------------------------------------------- /121-For-Range/range.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/121-For-Range/range.gop -------------------------------------------------------------------------------- /121-List-Comprehension/listcompr.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/121-List-Comprehension/listcompr.gop -------------------------------------------------------------------------------- /200-Structured programming/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /201-Functions/funcs.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/201-Functions/funcs.gop -------------------------------------------------------------------------------- /202-Multiple-Return-Values/multi-rets.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/202-Multiple-Return-Values/multi-rets.gop -------------------------------------------------------------------------------- /203-Errors/errors.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/203-Errors/errors.gop -------------------------------------------------------------------------------- /204-Function Values/func-values.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/204-Function Values/func-values.gop -------------------------------------------------------------------------------- /205-Closures/closures.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/205-Closures/closures.gop -------------------------------------------------------------------------------- /205-Lambda-expressions/lambda-expressions-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/205-Lambda-expressions/lambda-expressions-1.gop -------------------------------------------------------------------------------- /205-Lambda-expressions/lambda-expressions-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/205-Lambda-expressions/lambda-expressions-2.gop -------------------------------------------------------------------------------- /205-Lambda-expressions/lambda-expressions-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/205-Lambda-expressions/lambda-expressions-3.gop -------------------------------------------------------------------------------- /206-Recursion/recursion.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/206-Recursion/recursion.gop -------------------------------------------------------------------------------- /207-Variadic-Parameters/variadic.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/207-Variadic-Parameters/variadic.gop -------------------------------------------------------------------------------- /208-Defer/defer-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/208-Defer/defer-1.gop -------------------------------------------------------------------------------- /208-Defer/defer-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/208-Defer/defer-2.gop -------------------------------------------------------------------------------- /209-Exceptions/exceptions-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/209-Exceptions/exceptions-1.gop -------------------------------------------------------------------------------- /209-Exceptions/exceptions-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/209-Exceptions/exceptions-2.gop -------------------------------------------------------------------------------- /210-Methods/methods-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/210-Methods/methods-1.gop -------------------------------------------------------------------------------- /210-Methods/methods-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/210-Methods/methods-2.gop -------------------------------------------------------------------------------- /211-Methods-with-a-Pointer-Receiver/ptr-methods-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/211-Methods-with-a-Pointer-Receiver/ptr-methods-1.gop -------------------------------------------------------------------------------- /212-Composing-Types-by-Struct-Embedding/struct-emb-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/212-Composing-Types-by-Struct-Embedding/struct-emb-1.gop -------------------------------------------------------------------------------- /212-Composing-Types-by-Struct-Embedding/struct-emb-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/212-Composing-Types-by-Struct-Embedding/struct-emb-2.gop -------------------------------------------------------------------------------- /213-Method-Values-and-Expressions/method-values-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/213-Method-Values-and-Expressions/method-values-1.gop -------------------------------------------------------------------------------- /213-Method-Values-and-Expressions/method-values-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/213-Method-Values-and-Expressions/method-values-2.gop -------------------------------------------------------------------------------- /213-Method-Values-and-Expressions/method-values-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/213-Method-Values-and-Expressions/method-values-3.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-1.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-2.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-3.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-4.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-5.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-5.gop -------------------------------------------------------------------------------- /214-Encapsulation/encap-6.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/214-Encapsulation/encap-6.gop -------------------------------------------------------------------------------- /215-Interfaces/interfaces-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/215-Interfaces/interfaces-1.gop -------------------------------------------------------------------------------- /215-Interfaces/interfaces-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/215-Interfaces/interfaces-2.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-1.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-2.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-3.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-4.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-5.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-5.gop -------------------------------------------------------------------------------- /216-Interface-Satisfaction/interface-satisfy-6.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/216-Interface-Satisfaction/interface-satisfy-6.gop -------------------------------------------------------------------------------- /217-Interface-Values/interface-values-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/217-Interface-Values/interface-values-1.gop -------------------------------------------------------------------------------- /217-Interface-Values/interface-values-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/217-Interface-Values/interface-values-2.gop -------------------------------------------------------------------------------- /217-Interface-Values/interface-values-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/217-Interface-Values/interface-values-3.gop -------------------------------------------------------------------------------- /218-The-error-Interface/error-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/218-The-error-Interface/error-1.gop -------------------------------------------------------------------------------- /218-The-error-Interface/error-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/218-The-error-Interface/error-2.gop -------------------------------------------------------------------------------- /218-The-error-Interface/error-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/218-The-error-Interface/error-3.gop -------------------------------------------------------------------------------- /218-The-error-Interface/error-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/218-The-error-Interface/error-4.gop -------------------------------------------------------------------------------- /219-Type-Assertions/type-assert-1.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/219-Type-Assertions/type-assert-1.gop -------------------------------------------------------------------------------- /219-Type-Assertions/type-assert-2.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/219-Type-Assertions/type-assert-2.gop -------------------------------------------------------------------------------- /219-Type-Assertions/type-assert-3.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/219-Type-Assertions/type-assert-3.gop -------------------------------------------------------------------------------- /219-Type-Assertions/type-assert-4.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/219-Type-Assertions/type-assert-4.gop -------------------------------------------------------------------------------- /220-Type-Switches/type-switch.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/220-Type-Switches/type-switch.gop -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/README.md -------------------------------------------------------------------------------- /_deep/Unix-Shebang/shebang: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_deep/Unix-Shebang/shebang -------------------------------------------------------------------------------- /_deep/Using-goplus-in-Go/foo/foo.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_deep/Using-goplus-in-Go/foo/foo.gop -------------------------------------------------------------------------------- /_deep/Using-goplus-in-Go/foo/foo_test.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_deep/Using-goplus-in-Go/foo/foo_test.gop -------------------------------------------------------------------------------- /_deep/Using-goplus-in-Go/foo/footest_test.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_deep/Using-goplus-in-Go/foo/footest_test.gop -------------------------------------------------------------------------------- /_todo/02-Var-and-operator/var_and_op.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/02-Var-and-operator/var_and_op.gop -------------------------------------------------------------------------------- /_todo/03-Import-go-package/import.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/03-Import-go-package/import.gop -------------------------------------------------------------------------------- /_todo/04-Func/func.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/04-Func/func.gop -------------------------------------------------------------------------------- /_todo/05-Closure/closure.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/05-Closure/closure.gop -------------------------------------------------------------------------------- /_todo/06-String-Map-Array-Slice/datastruct.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/06-String-Map-Array-Slice/datastruct.gop -------------------------------------------------------------------------------- /_todo/08-SliceLit/slicelit.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/08-SliceLit/slicelit.gop -------------------------------------------------------------------------------- /_todo/09-IfElse-SwitchCase/flow.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/09-IfElse-SwitchCase/flow.gop -------------------------------------------------------------------------------- /_todo/10-List-comprehension/list_comprehens.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/10-List-comprehension/list_comprehens.gop -------------------------------------------------------------------------------- /_todo/11-Map-comprehension/map_comprehens.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/11-Map-comprehension/map_comprehens.gop -------------------------------------------------------------------------------- /_todo/12-Select-comprehension/select.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/12-Select-comprehension/select.gop -------------------------------------------------------------------------------- /_todo/12-Select-comprehension2/findscore.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/12-Select-comprehension2/findscore.gop -------------------------------------------------------------------------------- /_todo/13-Exists-comprehension/exists.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/13-Exists-comprehension/exists.gop -------------------------------------------------------------------------------- /_todo/15-ErrWrap/err_wrap.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/15-ErrWrap/err_wrap.gop -------------------------------------------------------------------------------- /_todo/16-Fib/fib.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/16-Fib/fib.gop -------------------------------------------------------------------------------- /_todo/17-Fibtc/fibtc.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/17-Fibtc/fibtc.gop -------------------------------------------------------------------------------- /_todo/18-Rational/rational.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/18-Rational/rational.gop -------------------------------------------------------------------------------- /_todo/19-IncDec/inc_dec.gop: -------------------------------------------------------------------------------- 1 | a, b := 2, 3 2 | a++ 3 | b-- 4 | println(a, b) 5 | -------------------------------------------------------------------------------- /_todo/21-Break-continue-goto/flow.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/21-Break-continue-goto/flow.gop -------------------------------------------------------------------------------- /_todo/22-For-loop/for.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/22-For-loop/for.gop -------------------------------------------------------------------------------- /_todo/23-Defer/defer.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/23-Defer/defer.gop -------------------------------------------------------------------------------- /_todo/24-Goroutine/goroutine.gop: -------------------------------------------------------------------------------- 1 | import "time" 2 | 3 | go func() { 4 | println("Hello, goroutine!") 5 | }() 6 | 7 | time.Sleep(1e8) 8 | -------------------------------------------------------------------------------- /_todo/25-Struct/struct.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/25-Struct/struct.gop -------------------------------------------------------------------------------- /_todo/26-Method/method.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/26-Method/method.gop -------------------------------------------------------------------------------- /_todo/27-Func-Set/func.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/27-Func-Set/func.gop -------------------------------------------------------------------------------- /_todo/28-Chan/chan.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/28-Chan/chan.gop -------------------------------------------------------------------------------- /_todo/29-CompareToNil/ref.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/29-CompareToNil/ref.gop -------------------------------------------------------------------------------- /_todo/30-Recover/recover.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/30-Recover/recover.gop -------------------------------------------------------------------------------- /_todo/31-Builtin-Typecast/builtin_and_typecast.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/31-Builtin-Typecast/builtin_and_typecast.gop -------------------------------------------------------------------------------- /_todo/32-Import-gop-package/import_gop_pkg.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/32-Import-gop-package/import_gop_pkg.gop -------------------------------------------------------------------------------- /_todo/33-Interface/shape.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/33-Interface/shape.gop -------------------------------------------------------------------------------- /_todo/34-Type-assert/type_assert.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/34-Type-assert/type_assert.gop -------------------------------------------------------------------------------- /_todo/35-Chan-select/select.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/35-Chan-select/select.gop -------------------------------------------------------------------------------- /_todo/36-Auto-Property/autoprop.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/36-Auto-Property/autoprop.gop -------------------------------------------------------------------------------- /_todo/37-Cmdline/cmdline.gop: -------------------------------------------------------------------------------- 1 | import "os" 2 | 3 | println("args:", os.Args[1:]) 4 | -------------------------------------------------------------------------------- /_todo/38-Overload-operator/overload_op.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/38-Overload-operator/overload_op.gop -------------------------------------------------------------------------------- /_todo/39-Lambda-expression/lambda.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/39-Lambda-expression/lambda.gop -------------------------------------------------------------------------------- /_todo/40-Deduce-struct-type/deduce.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/40-Deduce-struct-type/deduce.gop -------------------------------------------------------------------------------- /_todo/41-UDT-RangeForEach/udt_range.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/41-UDT-RangeForEach/udt_range.gop -------------------------------------------------------------------------------- /_todo/42-UDT-RangeIterator/udt_range_iter.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/42-UDT-RangeIterator/udt_range_iter.gop -------------------------------------------------------------------------------- /_todo/43-RangeExpr/rangeexpr.gop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/_todo/43-RangeExpr/rangeexpr.gop -------------------------------------------------------------------------------- /dummy/dummy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/dummy/dummy.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/go.sum -------------------------------------------------------------------------------- /internal/watch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/internal/watch.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/main.go -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/404.html -------------------------------------------------------------------------------- /public/clipboard.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/clipboard.min.js -------------------------------------------------------------------------------- /public/clipboard.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/clipboard.svg -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /public/play.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/play.svg -------------------------------------------------------------------------------- /public/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/public/site.css -------------------------------------------------------------------------------- /templates/example.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/templates/example.tmpl -------------------------------------------------------------------------------- /templates/footer.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/templates/footer.tmpl -------------------------------------------------------------------------------- /templates/header.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/templates/header.tmpl -------------------------------------------------------------------------------- /templates/index.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goplus/tutorial/HEAD/templates/index.tmpl --------------------------------------------------------------------------------