What do you want to save?
Add Code snippet
New code examples
-
Go 2021-09-26 21:10:02
goland how to print out your current path
package main // More info on Getwd() // https://golang.org/src/os/getwd.go import( "os" "fmt" "log" ) func main() { dir, err := os.Getwd() if err != nil || dir == "" { log.Fatalf("Error: %v", ... Add solution -
Other 2021-09-23 05:25:02
docker copy from another image
FROM golang:1.7.3 AS builder WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . FROM alpine:latest RUN apk --no-cache add ca-... Add solution -