Go Cheatsheet - Format Errors
Errors
Return simple error string
return errors.New("Invalid Parameter")
Return string with format
return fmt.Errorf("user %q (id %d) not found", name, id)
Search for a command to run...
return errors.New("Invalid Parameter")
return fmt.Errorf("user %q (id %d) not found", name, id)
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...