Comments (12)
(but we don't run anything like that on our documentation pages)
from fyne.
Ah yes. This does not actually print to the docs site, just generates images.
But I have fixed it for good measure.
from fyne.
This is not a breaking change because you are supposed to name the fields you set. Many code analysers even give you an error when you have unnamed struct parameters. If this was considered a breaking change, we would never be able to improve the types without introducing a new type i.e. every little improvement would be a breaking change. I will close this as not being an issue.
from fyne.
I see. Thanks for evaluating.
from fyne.
No worries. Thanks for keeping a close eye on the codebase
from fyne.
The OP is right it does feel like something broke (though I agree its not a breaking change).
What we may need to do however is to ensure any usage of struct literals in our codebase all use named fields ;).
from fyne.
What we may need to do however is to ensure any usage of struct literals in our codebase all use named fields ;).
I think Staticheck already flags that.
from fyne.
Yup. We should probably move the examples out into separate files (whose contents are added into the code blocks) and run code analysis on them?
from fyne.
JFYI: I did a quick grep with the expression \.[A-Z][a-zA-Z]*\{[^:}]+\}
in the docs repo and only found some relevant results with color.NRGBA
, color.Gray
and color.RGBA
in these files:
_gen/genlayouts.go
canvas/circle.md
canvas/raster.md
I'm not sure, though, if these really need to be changed. I don't know what the policy about adding new fields to structs is in the standard library, but doubt that these three structs will ever change.
from fyne.
Thanks so much for that. We should fix them anyway, as @Jacalz said it's something linters complain about so our docs should this best practice!
from fyne.
Those instances should be fixed now :)
from fyne.
@andydotxyz canvas/circle.md
and canvas/raster.md
look good to me. In _gen/genlayouts.go
I still see the "old" style in line 29 and line 32.
from fyne.
Related Issues (20)
- DocTabs.OnUnselected not called
- MacOS notifications not working as expected: showing fallback notifications if explicitly disallowed, showing no notifications if allowed
- MultiLineEntry widget Press the Ctrl+left arrow will panic HOT 4
- Clicking First App Tab Multiple Times Causes Strange Drawing Behavior HOT 4
- Unrelated Button Disable Causes Entry ActionItem to Not Be Displayed HOT 4
- App Metadata is empty on windows (develop branch) HOT 2
- Support the register of URL scheme with the OS HOT 2
- Scrolling is laggy with high speed gaming mice HOT 5
- Japanese text doesn't truncate properly using fyne.TextTruncateEllipsis HOT 1
- Error while importing fyne HOT 1
- Using container.NewThemeOverride leaks memory until window closing HOT 4
- Typing Chinese characters in widget.Entry and perform undo/redo crashes the app. HOT 2
- entry FocusGained/FocusLost functions run before resizing for the mobile keyboard is complete HOT 9
- Android: Back button handling doesn't work, GoBack() crashed the app HOT 6
- invalid recursive type itemCanvasObject HOT 7
- Form dialog validation becomes valid if one input field is valid HOT 1
- stack overflow when calling SetRowHeight in table UpdateCell callback HOT 5
- Built binary is too large HOT 6
- Error in new fyne release 2.5.0 HOT 1
- How do i fix the terrible bug HOT 2
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 fyne.