4129 links
740 private links
  • Doo's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Jouer les vidéos
Links per page: 20 50 100
6 results tagged go x
  • go command - cmd/go - Go Packages

    Configuration for downloading non-public code ¶
    The go command defaults to downloading modules from the public Go module mirror at proxy.golang.org. It also defaults to validating downloaded modules, regardless of source, against the public Go checksum database at sum.golang.org. These defaults work well for publicly available source code.

    The GOPRIVATE environment variable controls which modules the go command considers to be private (not available publicly) and should therefore not use the proxy or checksum database. The variable is a comma-separated list of glob patterns (in the syntax of Go's path.Match) of module path prefixes. For example,

    GOPRIVATE=*.corp.example.com,rsc.io/private
    causes the go command to treat as private any module with a path prefix matching either pattern, including git.corp.example.com/xyzzy, rsc.io/private, and rsc.io/private/quux.

    For fine-grained control over module download and validation, the GONOPROXY and GONOSUMDB environment variables accept the same kind of glob list and override GOPRIVATE for the specific decision of whether to use the proxy and checksum database, respectively.

    For example, if a company ran a module proxy serving private modules, users would configure go using:

    GOPRIVATE=*.corp.example.com
    GOPROXY=proxy.example.com
    GONOPROXY=none

    December 15, 2022 04:23:44 PM GMT+01:00 * - permalink -
    QRCode
    - https://pkg.go.dev/cmd/go#hdr-Configuration_for_downloading_non_public_code
    go
  • Intro++ to Go Interfaces · npf.io

    Les interfaces en go c'est vraiment pas simple ... Pour citer l'article :

    Go’s interfaces are one of it’s best features, but they’re also one of the most confusing for newbies.

    mais l'exemple est assez parlant :

    type Walker interface {
        Walk(miles int)
    }
    
    type Camel struct {
        Name string
    }
    
    func (c Camel) Walk(miles int) {
         fmt.Printf(“%s is walking %v miles\n”, c.Name, miles)
    }
    
    func LongWalk(w Walker) {
         w.Walk(500)
         w.Walk(500)
    }
    
    func main() {
        c := Camel{“Bill”}
        LongWalk(c)
    }
    
    // prints
    // Bill is walking 500 miles.
    // Bill is walking 500 miles.
    December 10, 2017 05:59:11 PM GMT+01:00 * - permalink -
    QRCode
    - https://npf.io/2014/05/intro-to-go-interfaces/
    golang go interfaces
  • thumbnail
    Binky Pointer Fun Video C (High Quality 640x560) - YouTube
    December 5, 2017 02:36:00 PM GMT+01:00 * - permalink -
    QRCode
    - https://www.youtube.com/watch?v=5VnDaHBi8dM
    pointeurs golang go
  • Go by Example: Goroutines

    Un très bon example ELI5 de goroutines, c'est plus simple de l'expliquer sans channel en fait ... enfin c'est plus simple de le comprendre :D

    July 15, 2015 05:03:12 PM GMT+02:00 * - permalink -
    QRCode
    - https://gobyexample.com/goroutines
    golang go
  • How To Ensure a Type Implements an Interface (golang)

    Une page qui explique très bien ce qu'est une interface !

    July 15, 2015 04:52:15 PM GMT+02:00 * - permalink -
    QRCode
    - https://splice.com/blog/golang-verify-type-implements-interface-compile-time/
    golang go
  • http://learnxinyminutes.com/docs/files/learngo.go

    Un fucking fichier qui permet d'apprendre go assez rapidement :) so far so clear, en français en plus. Ca va me faciliter la vie tout ça

    July 14, 2015 02:39:56 PM GMT+02:00 * - permalink -
    QRCode
    - http://learnxinyminutes.com/docs/files/learngo.go
    golang go
Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation