diff --git a/web/src/editor/props.ts b/web/src/editor/props.ts index 91410fc5..aa010fb9 100644 --- a/web/src/editor/props.ts +++ b/web/src/editor/props.ts @@ -5,7 +5,9 @@ export const LANGUAGE_GOLANG = 'go'; export const DEMO_CODE = [ 'package main\n', - 'import "fmt"\n', + 'import (', + '\t"fmt"', + ')', 'func main() {', '\tfmt.Println("Hello World")', '}\n' @@ -34,4 +36,4 @@ export const stateToOptions = (state: MonacoSettings): monaco.editor.IEditorOpti minimap: {enabled: state.minimap}, contextmenu: contextMenu, }; -}; \ No newline at end of file +};