[go-nuts] Re: [security] Go 1.19.3 and Go 1.18.8 pre-announcement

2022-10-30 Thread Thomas Frössman
Would it be possible to get narrower time windows for these security
releases?

A  date without a specified time zone is a span of 48 hours which is
impossible for me to plan for. I can't stay up all night or reasonably ask
them from others just in case a Go security fix happens to drop at any time
on a date.

A window of maybe 4 hours in a specified time zone (UTC) would make it
possible for me to actually be ready to check for these releases when they
drop.

On Wed, Oct 26, 2022 at 6:25 PM  wrote:

> Hello gophers,
>
> We plan to issue Go 1.19.3 and Go 1.18.8 on Tuesday, November 1.
>
> These minor releases include PRIVATE security fixes to the standard
> library.
>
> Following our security policy, this is the pre-announcement of those
> releases.
>
> Thanks,
> Tatiana and Heschi for the Go team
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-announce" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-announce+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-announce/SqV2R4AQQTOjO-b9c0RHQA%40geopod-ismtpd-2-3
> <https://groups.google.com/d/msgid/golang-announce/SqV2R4AQQTOjO-b9c0RHQA%40geopod-ismtpd-2-3?utm_medium=email&utm_source=footer>
> .
>


-- 
Thomas Frössman
https://t.jossystem.se <http://t.jossystem.se>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CANDWisC7phEK-PvFHk7%2Br_xz0GGfKXsLvu73nJyKGwOUb5jJfg%40mail.gmail.com.


Re: [go-nuts] Re: Problem using embed in Go 1.16

2021-10-12 Thread Thomas Frössman
import (
_ "embed"
   ...
)

On Sun, Oct 10, 2021 at 6:21 PM Sean Liao  wrote:

> import _ "embed"
>
> It means to import it for side effects only
>
> On Sunday, October 10, 2021 at 6:12:07 PM UTC+2 sunto...@gmail.com wrote:
>
>> Hi,
>>
>> I'm having problem using embed with Go 1.16. I'm getting ether
>>
>> - //go:embed only allowed in Go files that import "embed"
>> - or imported and not used: "embed"
>>
>> The test code is published at
>> https://github.com/suntong/lang/tree/master/lang/Go/src/ds/embed
>>
>> here are the details:
>>
>> If I remove the "embed" Go import, I'll get:
>>
>> $ go build
>> # github.com/suntong/lang/lang/Go/src/ds/embed
>> ./embeding.go:17:3: //go:embed only allowed in Go files that import
>> "embed"
>>
>> If I add back the "embed" Go import, I'll get:
>>
>> $ go build
>> # github.com/suntong/lang/lang/Go/src/ds/embed
>> ./embeding.go:11:2: imported and not used: "embed"
>>
>> $ go version
>> go version go1.16.6 linux/amd64
>>
>> $ lsb_release -a
>> No LSB modules are available.
>> Distributor ID: Debian
>> Description:Debian GNU/Linux bullseye/sid
>> Release:10.10
>> Codename:   buster
>>
>> The main file:
>>
>> ---
>> package main
>>
>> import (
>> "embed"
>> "flag"
>> "fmt"
>> "os"
>> )
>>
>> //go:embed cpuArch.txt
>> var cpuArch string
>>
>> func usage() {
>> // Fprintf allows us to print to a specifed file handle or stream
>> fmt.Fprintf(os.Stderr, "\nUsage: %s [flags] file [path ...]\n\n",
>> "CommandLineFlag") // os.Args[0]
>> flag.PrintDefaults()
>> os.Exit(0)
>> }
>>
>> func main() {
>> fmt.Printf("Before parsing the flags\n")
>> fmt.Printf("CPU: '%s'\n", cpuArch)
>>
>> flag.StringVar(&cpuArch, "cpu", "AMD64", "CPU Arch")
>>
>> flag.Usage = usage
>> flag.Parse()
>>
>> // There is also a mandatory non-flag arguments
>> if len(flag.Args()) < 1 {
>> usage()
>> }
>>
>> fmt.Printf("\nAfter parsing the flags\n")
>> fmt.Printf("CPU: '%s'\n", cpuArch)
>>
>> }
>> ---
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/99ac3e07-b1b6-4605-99f3-cf013a8ef8d3n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/99ac3e07-b1b6-4605-99f3-cf013a8ef8d3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thomas Frössman
http://t.jossystem.se

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CANDWisCKNznGgy3wDkh-YUTByDXdPjs%2BdS%3DiLyWgHmO4vcfiWA%40mail.gmail.com.


Re: [go-nuts] goimports has been updated

2016-07-15 Thread Thomas Frössman
Environment variables like (maybe) GOIMPORTSIGNORE/GORENAMEIGNORE fits
better with how go tools are currently configured than config files.

On Fri, Jul 15, 2016 at 5:38 PM, Peter Waller  wrote:

> On 15 July 2016 at 16:35, Sam Whited  wrote:
>
>> On Fri, Jul 15, 2016 at 9:49 AM, Peter Waller 
>> wrote:
>> > Another suggestion which might be even nicer for the implementation: if
>> a
>> > directory contains `.goimportsignore`, that directory is skipped.
>>
>> That would have to be in addition to a file that lists directories,
>> otherwise you can't skip submodules and subtree merges and the like
>> (external code where you don't have the ability to add a
>> .goimportsignore file).
>
>
> Ah yes, of course. I retract my suggestion.
>



-- 
Thomas Frössman
http://t.jossystem.se

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] goimports has been updated

2016-07-15 Thread Thomas Frössman
Yeah. I also have (several) linux trees, gcc's and stuff in my GOPATH.. I would 
really like some global config way to tell   goimports/gorename/... to ignore a 
bunch of subtrees.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] goimports has been updated

2016-07-15 Thread Thomas Frössman
Yeah. I also have (several) linux trees, gcc's and stuff in my GOPATH.. I would 
really like some global config way to tell   goimports/gorename/... to ignore a 
bunch of subtrees.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.