15 lines
		
	
	
		
			241 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			241 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package eap
 | |
| 
 | |
| type IdentityPayload struct {
 | |
| 	Identity string
 | |
| }
 | |
| 
 | |
| func (ip *IdentityPayload) Decode(raw []byte) error {
 | |
| 	ip.Identity = string(raw)
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (ip *IdentityPayload) Encode() ([]byte, error) {
 | |
| 	panic("Identity encode")
 | |
| }
 | 
