Comments (3)
I'm glad you found a workaround that works for you. Feel free to post a solution here if you ever find one!
from gomponents.
Hi @eduardolat, thank you for taking the time to create an issue!
I think this is usually something you can set up in your editor. Either you could have it not delete unused imports, or use an editor that supports importing with aliases. GoLand (from Jetbrains) usually does this quite well, I don't know about other editors. Alternatively, wait with saving the file until you've used the import.
This isn't something I want to add to the library. If you editor doesn't support some of my proposed solutions, maybe you can file an issue with the makers of your editor?
I hope you find a good solution. 😊
from gomponents.
Thaks @markuswustenberg for your response.
I think I'll just use the imports without aliases (gomponents, html, components instead of g, h, c).
I'm going to find out about configurations for vscode that solve this in the best possible way, thank you very much for your contributions to the community.
from gomponents.
Related Issues (20)
- Merge multiple occurrences of the `class` attribute HOT 5
- Inline if with nil pointer HOT 8
- Why can't a group be rendered? HOT 11
- Add lib to awesome Go HOT 1
- Remove fmt.Stringer support? HOT 3
- Handling internationalization HOT 9
- trigger an error on duplicate attributes HOT 3
- Make Group renderable
- Proposal to Add String Rendering Method to Node Interface HOT 5
- HTML -> gomponents converter tool HOT 9
- Label can be an attribute as well HOT 2
- Missing list attribute HOT 1
- Figure out what can be done about name collisions between elements and attributes HOT 4
- Add new `[type]` links to godocs
- Drop support for pre Go 1.18? HOT 3
- Perhaps we can take inspiration from HOT 6
- JS Ternary like HOT 1
- Add `cite` attribute
- Is it possible to modify an existing gomponent?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gomponents.