| Extension VSCode for Go (Golang)    
 This extension provides Go (Golang) code snippets that can be used in your Go projects. Snippets are pre-defined code snippets that can be automatically inserted using specific keywords. Key Features
Go (Golang) Code Snippets: This extension provides various code snippets commonly used in Go development, such as basic program structure, functions, variables, loops, and more. You can save time and effort by using these snippets instead of rewriting the same code repeatedly. How to Use Snippets
 
Make sure you have installed this extension in VSCode.Open the Go file where you want to add code snippets.Type the keyword of the snippet you want to use.To select a snippet, start by typing an exclamation mark (!) followed by the keyword or description of the snippet you want to insert. For example, if you want to insert a snippet for a function declaration, you can type "!function" or "!func". This will display a list of matching snippets, and you can choose the one you want by pressing Tab or using the cursor to select it.The Go code snippet will be added to the editor instantly. Available Snippets
!time: Showtime.Now()!timeUnix: Showtime.Now().Unix()!timeMonthString: Showtime.Now().Format("200601")!timeDateString: Showtime.Now().Format("20060102")!convStringToInt: Showint, err := strconv.Atoi(?)!convStringToUint: Showuint, err := strconv.ParseUint(?, 10, 32)!convStringToFloat: Showfloat, err := strconv.ParseFloat(?, 8)!convFloatToString: Showstrconv.FormatFloat(?, 'f', -1, 64)!convUintToString: Showstrconv.FormatUint(uint64(?), 10)!convFloatToString: Showuint, err := strconv.ParseUint(?, 10, 32)!fmtSring: Show%sTo Complatefmt.Sprintf("%s", "string")!fmtUint: Show%dTo Complatefmt.Sprintf("%d", uint)!fmtFloat: Show%gTo Complatefmt.Sprintf("%g", float)!switch: Showswitch expression {case condition:}!filterMapString: Showdata := map[string]string{"?.eq": "?string"}!split: Show"strings.Split(?, "?")"!findAll: ShowQuery Gorm FindAll Data!findByID: ShowQuery Gorm FindByID Data!create: ShowQuery Gorm Create Data!update: ShowQuery Gorm Update Data!delete: ShowQuery Gorm Delete Data And others Contribution
Sure, I'd be happy to help! You can contribute to the development of this extension by adding new Go code snippets or improving existing ones. Please visit our GitHub repository at repositori GitHub for more information. Licence
This extension is licensed under the MIT License. Please refer to the LICENSE file for more information. Problem Report
If you encounter any issues while using this project or have suggestions for improvement, please create a new issue in issue baru. We will make every effort to address it as soon as possible. Support
If you encounter any issues or have questions regarding this extension, please create a new issue in our GitHub repository issue. Thank you for using the VSCode extension for Go (Golang)! |  |