mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 00:01:40 +01:00 
			
		
		
		
	Saves 33 KB. Updates #12614 Change-Id: Ie701c230e0765281f409f29ed263910b9be9cc77 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			508 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			508 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) Tailscale Inc & AUTHORS
 | |
| // SPDX-License-Identifier: BSD-3-Clause
 | |
| 
 | |
| //go:build !ios && !android && !ts_omit_hujsonconf
 | |
| 
 | |
| package conffile
 | |
| 
 | |
| import "github.com/tailscale/hujson"
 | |
| 
 | |
| // Only link the hujson package on platforms that use it, to reduce binary size
 | |
| // & memory a bit.
 | |
| //
 | |
| // (iOS and Android don't have config files)
 | |
| 
 | |
| // While the linker's deadcode mostly handles the hujson package today, this
 | |
| // keeps us honest for the future.
 | |
| 
 | |
| func init() {
 | |
| 	hujsonStandardize = hujson.Standardize
 | |
| }
 |