The field can't be reordered.
I want to use zero-sized data type to mark offset and has no effect on
struct size, I can take the address of it and use it like:
```go
c := ...
cmd := (*[SIZE]byte)(unsafe.Pointer(&c.Inner))
```
I am using this on mmap-ed memory.
I've found a workaround to do the sam
I find this question a bit hard to understand. I think it has to do with go
run and then a URL, which can't be done.
Can you rephrase it?
On Wednesday, October 12, 2022 at 9:37:17 AM UTC+2 esi...@gmail.com wrote:
> I know that //go:embed directive reads the content of the embedable file
> at co
What is the usage of that zero-sized data type? Can you give an example
where that Inner field has any usage?
On Wednesday, October 12, 2022 at 7:27:14 PM UTC+2
axel.wa...@googlemail.com wrote:
> You can re-order the fields to get the desired effect:
> https://go.dev/play/p/E1KTqVp0i-v
>
> On W
Please try to give your "requirement" in a more meaningful form.
> fmt.Printf("%.2f", value) -> this will do formatting but type is not
float which is the requirement.
This doesn't mean anything without context. If I write:
var value float64
fmt.Printf("%.2f", value)
then 'value' clearly *is*
Thank you, lets say I have cloned a different rep and locally committed a
file to that repo's default branch, now wat to push that. So I should run
*./push url_of_that_repo, *but it is not working.
On Thu, Oct 13, 2022 at 1:00 PM go je wrote:
> if you mean os.Args[1], you might want to build it
I need to add zeroes after a decimal point to a float type but not able to
do so.
For instance I have a int value of 500 and need to convert this to 5.00
(type must be float) and need to use decimal lib
fmt.Printf("%.2f", value) -> this will do formatting but type is not float
which is the re
Blegh, of course I typoed:
> between the Go project and the Antivirus vendors
That should be "and Microsoft"
On Thu, Oct 13, 2022 at 10:20 AM Axel Wagner
wrote:
> I don't really understand the point of that article.
>
> There are three institutions mentioned: 1. The Go project, 2. Microsoft
> an
I don't really understand the point of that article.
There are three institutions mentioned: 1. The Go project, 2. Microsoft and
3. Antivirus vendors.
- From what I can tell, the Go project isn't involved at all - at least if
the author of the article is correct (I can't test that) in that this i
if you mean os.Args[1], you might want to build it first using "go build"
and you might run "./push https://github.com/go-git/go-git";.
if you don't build the executable, the default args might be
`[]string{"go", "run", "_examples/push/main.go", "
https://github.com/go-git/go-git"}` where "os.Args[
Excellent article:
https://betterprogramming.pub/a-big-problem-in-go-that-no-one-talks-about-328cc3e71378
(The author tests against https://www.virustotal.com/gui/home/upload)
Reddit thread:
https://www.reddit.com/r/golang/comments/y24was/an_article_about_go_hello_world_builds_mistakenly/
Even
10 matches
Mail list logo