gowrtr
gowrtr is a library that supports golang code generation
File Explorer
- check.yml
- anonymous_func.go
- anonymous_func_doc_test.go
- anonymous_func_signature.go
- anonymous_func_signature_doc_test.go
- anonymous_func_signature_test.go
- anonymous_func_test.go
- case.go
- case_doc_test.go
- case_test.go
- code_block.go
- code_block_doc_test.go
- code_block_test.go
- comment.go
- comment_doc_test.go
- comment_test.go
- composite_literal.go
- composite_literal_test.go
- default_case.go
- default_case_doc_test.go
- default_case_test.go
- else.go
- else_doc_test.go
- else_if.go
- else_if_doc_test.go
- else_if_test.go
- else_test.go
- for.go
- for_doc_test.go
- for_test.go
- frame_fetcher.go
- frame_fetcher_test.go
- func.go
- func_doc_test.go
- func_invocation.go
- func_invocation_doc_test.go
- func_invocation_test.go
- func_receiver.go
- func_receiver_doc_test.go
- func_receiver_test.go
- func_signature.go
- func_signature_doc_test.go
- func_signature_test.go
- func_test.go
- if.go
- if_doc_test.go
- if_test.go
- import.go
- import_doc_test.go
- import_test.go
- interface.go
- interface_doc_test.go
- interface_test.go
- newline.go
- newline_doc_test.go
- newline_test.go
- package.go
- package_doc_test.go
- package_test.go
- raw_statement.go
- raw_statement_doc_test.go
- raw_statement_test.go
- return_statement.go
- return_statement_doc_test.go
- return_statement_test.go
- root.go
- root_doc_test.go
- root_test.go
- statement.go
- struct.go
- struct_doc_test.go
- struct_test.go
- switch.go
- switch_doc_test.go
- switch_test.go
- type_parameters.go
- type_parameters_doc_test.go
- type_parameters_test.go
- errmsg.go
- errs_errmsg_gen.go
- vendor.go
- .gitignore
- go.mod
- go.sum
- LICENSE
- Makefile
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
interface
View Details ▼
interface
Manage interfaces.
Accessed in configuration mode.
interface vlan {{1}}
Configure a VLAN:
{{no shutdown|shutdown}}
Set an interface to be active or inactive (this is run inside the interface command):
fmt
View Details ▼
fmt
Reformat a text file by joining its paragraphs and limiting the line width to a number of characters (75 by default).
fmt {{path/to/file}}
Reformat a file:
fmt {{[-w|--width]}} {{n}} {{path/to/file}}
Reformat a file producing output lines of (at most) `n` characters:
fmt {{[-s|--split-only]}} {{path/to/file}}
Reformat a file without joining lines shorter than the given width together:
func
View Details ▼
func
Azure Functions Core Tools: develop and test Azure Functions locally.
Local functions can connect to live Azure services, and can deploy a function app to an Azure subscription.
func init {{project}}
Create a new functions project:
func new
Create a new function:
func start
Run functions locally:
gofmt
View Details ▼
gofmt
Format Go source code.
gofmt {{path/to/source.go}}
Format a file and display the result to the console:
gofmt -w {{path/to/source.go}}
Format a file, overwriting the original file in-place:
gofmt -s -w {{path/to/source.go}}
Format a file, and then simplify the code, overwriting the original file:
goimports
View Details ▼
goimports
Update Go import lines, adding missing ones and removing unreferenced ones.
goimports {{path/to/file.go}}
Display the completed import source file:
goimports -w {{path/to/file.go}}
Write the result back to the source file instead of `stdout`:
goimports -w -d {{path/to/file.go}}
Display diffs and write the result back to the source file:
