mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-11-04 00:55:11 +00:00 
			
		
		
		
	logtail: add PrivateID.IsZero method
This commit is contained in:
		@@ -55,6 +55,9 @@ func ParsePrivateID(s string) (PrivateID, error) {
 | 
				
			|||||||
	return p, nil
 | 
						return p, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// IsZero reports whether id is the zero value.
 | 
				
			||||||
 | 
					func (id PrivateID) IsZero() bool { return id == PrivateID{} }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (id *PrivateID) UnmarshalText(s []byte) error {
 | 
					func (id *PrivateID) UnmarshalText(s []byte) error {
 | 
				
			||||||
	b, err := hex.DecodeString(string(s))
 | 
						b, err := hex.DecodeString(string(s))
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user