Skip to content
Snippets Groups Projects
Select Git revision
  • c474540c8e9b354b269b7459e27e04082aa30d03
  • main default protected
  • dev protected
  • hotfixes-oct-2022
  • refactor/avatar-cell
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1
  • 1.0.8
  • 1.0.7
  • 1.0.6
12 results

SideMenuPresenterTests.swift

Blame
  • status.go 820 B
    ///////////////////////////////////////////////////////////////////////////////
    // Copyright © 2020 xx network SEZC                                          //
    //                                                                           //
    // Use of this source code is governed by a license that can be found in the //
    // LICENSE file                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    
    package api
    
    import (
    	"fmt"
    )
    
    type Status int
    
    const (
    	Stopped  Status = 0
    	Running  Status = 2000
    	Stopping Status = 3000
    )
    
    func (s Status) String() string {
    	switch s {
    	case Stopped:
    		return "Stopped"
    	case Running:
    		return "Running"
    	case Stopping:
    		return "Stopping"
    	default:
    		return fmt.Sprintf("Unknown state %d", s)
    	}
    }