Go Cheatsheet - Generate UUIDv4 String
Use 3rd-party package to generate uuidv4 string:
Step 1
Install package:
go get github.com/google/uuid
Step 2
Call function:
func main() {
uuidStr := uuid.NewString()
fmt.Println(uuidStr)
}
Search for a command to run...
Use 3rd-party package to generate uuidv4 string:
Install package:
go get github.com/google/uuid
Call function:
func main() {
uuidStr := uuid.NewString()
fmt.Println(uuidStr)
}
No comments yet. Be the first to comment.
Go to settings, search "cursor smooth", enable the smooth settings:
Style <script setup lang="ts"> const color = ref("red) </script> <style scoped> .text { color: v-bind('color') } </style>
Pinia export const initData = function () { const instance = useCounterStore() // listen on change, then save to localStorage instance.$subscribe((mutation, state) => { localStorage.setItem(instance.$id, JSON.stringify(state)) ...
Steps 1, Buy & install Dank Mono font (https://dank.sh) 2, In settings.json, add: "editor.fontFamily": "Dank Mono, Menlo, Monaco", "editor.fontLigatures": true, "editor.tokenColorCustomizations": { "textMateRules": [ {...
General components Meraki UI ( https://merakiui.com/ ) Tailwind Components ( https://tailwindcomponents.com/ ) Tailblocks ( https://tailblocks.cc/ ) DaisyUI ( https://daisyui.com/ ) LofiUI ( https://lofiui.co/ ) MambaUI ( https://mambaui.com/ ) Flow...