Source file src/cmd/vet/testdata/slog/slog.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file contains tests for the slog checker.
     6  
     7  package slog
     8  
     9  import "log/slog"
    10  
    11  func SlogTest() {
    12  	slog.Info("msg", "a") // ERROR "call to slog.Info missing a final value"
    13  }
    14  

View as plain text