Skip to content

Commit

Permalink
May 20, 2024, 12:58 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
serverhorror committed May 19, 2024
1 parent e0e208c commit daa10f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notes/kb.go.build-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: rw3b58bt8xjl63a8cbcaujz
title: Customizing Go Binaries with Build Tags
desc: ''
updated: 1716159415807
updated: 1716159474870
created: 1705160430666
tags:
- go
Expand Down Expand Up @@ -42,7 +42,8 @@ go build -tags tag_name

as of Go 1.22 the `rangefunc` experiment is available

* see: [go/src/interna/goexperiment/flags.go#L111](https://github.com/golang/go/blob/master/src/internal/goexperiment/flags.go#L111)
* see: [goexperiment package - internal/goexperiment - Go Packages](https://pkg.go.dev/internal/goexperiment#pkg-overview)
* see: [go/src/interna/goexperiment/flags.go#L111](https://github.com/golang/go/blob/master/src/internal/goexperiment/flags.go#L111)

```go
//go:build goexperiment.rangefunc
Expand Down

0 comments on commit daa10f3

Please sign in to comment.