Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsAdmin (0.05 sec)

  1. tests/scanner_valuer_test.go

    		role.Name = string(b)
    	} else {
    		role.Name = value.(string)
    	}
    	return nil
    }
    
    func (role Role) Value() (driver.Value, error) {
    	return role.Name, nil
    }
    
    func (role Role) IsAdmin() bool {
    	return role.Name == "admin"
    }
    
    type EmptyTime struct {
    	time.Time
    }
    
    func (t *EmptyTime) Scan(v interface{}) error {
    	nullTime := sql.NullTime{}
    	err := nullTime.Scan(v)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    ac.lk
    
    // lr : http://psg.com/dns/lr/lr.txt
    // Submitted by registry <******@****.***>
    lr
    com.lr
    edu.lr
    gov.lr
    org.lr
    net.lr
    
    // ls : http://www.nic.ls/
    // Confirmed by registry <lsadmin@nic.ls>
    ls
    ac.ls
    biz.ls
    co.ls
    edu.ls
    gov.ls
    info.ls
    net.ls
    org.ls
    sc.ls
    
    // lt : https://en.wikipedia.org/wiki/.lt
    lt
    // gov.lt : http://www.gov.lt/index_en.php
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 240.3K bytes
    - Viewed (0)
Back to top