Some useful snippets for Gleam.
All snippets here in prefix(-es) - title - description format.
helloworld- Hello, world - BasicHello worldprogramimportorimportas- import .. as .. - Import with aliasimportorimportfrom- import from - Add unqualified importimportorimporttypefrom- import type from - Add unqualified import of typepub type- public type alias - Alias for type (public)type- type alias - Alias for type (private)debug- debug - Print value to terminal usingio.debugfuncorfunctionorfn- function - Functionfuncorfunctionreturnorfn- function with return type - Function with return typefuncorfunctionorfnorpub fn- public function - Public functionfuncorfunctionreturnorfnorpub fn- public function with return type - Public function withh return typefnoranfn- anonymous function - Anonymous functiongenericorfnorfuncorfunction- Function with generic argumentlabeledorfnorfuncorfunction- labeled function parameters - Function with labeled parameterslabeledorfnorfuncorfunction- labeled function parameters with return type - Function with labeled parameters with return typedeprordeprecatedor@- deprecated - Mark definition as deprecatedcase- case - Simple case constructiontupleor#(- tuple - Tuple value constructionexternalor@- external - External mark for functionspanic- panic with reason - Call panic with reasontodo- todo with reason - TODO mark with reasontypeorpub type- custom type - Custom type declarationtypeorpub type- custom type with record - Custom type declaration with recordtypeorpub type- custom type with generic - Custom type declaration with generic argument
Users appreciate release notes as you update your extension.
Initial release of extension