dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/common/fake_validator.go (about)

     1  //go:build no_dto_validator
     2  
     3  //
     4  // Copyright (C) 2022 IOTech Ltd
     5  //
     6  // SPDX-License-Identifier: Apache-2.0
     7  
     8  package common
     9  
    10  import "errors"
    11  
    12  func Validate(a interface{}) error {
    13  	return errors.New("wrong build: DTO validator is not available. " +
    14  		"Build without \"-tags no_dto_validator\" on the go build command line to enable runtime support for this feature")
    15  }