gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

codecgen.go (511B)


      1 // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
      2 // Use of this source code is governed by a MIT license found in the LICENSE file.
      3 
      4 //go:build codecgen || generated
      5 // +build codecgen generated
      6 
      7 package codec
      8 
      9 // this file sets the codecgen variable to true
     10 // when the build tag codecgen is set.
     11 //
     12 // some tests depend on knowing whether in the context of codecgen or not.
     13 // For example, some tests should be skipped during codecgen e.g. missing fields tests.
     14 
     15 func init() {
     16 	codecgen = true
     17 }